shithub: rc

Download patch

ref: 9a50c1d21b9336ec5f7b4f2703d7c432479d1302
parent: 11d6d33e28309ee553d629c8964d387039bb5524
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jan 10 12:42:57 EST 2022

rc: fix pwrd() regression, forgot <= ' ' case from needsrcquote()... sorry :(

--- a/io.c
+++ b/io.c
@@ -138,7 +138,7 @@
 pwrd(io *f, char *s)
 {
 	char *t;
-	for(t = s;*t;t++) if(*t >= 0 && strchr("`^#*[]=|\\?${}()'<>&;", *t)) break;
+	for(t = s;*t;t++) if(*t >= 0 && (*t <= ' ' || strchr("`^#*[]=|\\?${}()'<>&;", *t))) break;
 	if(t==s || *t)
 		pquo(f, s);
 	else pstr(f, s);