git: 9front

Download patch

ref: e27e91297f7cae8d2eb522018b8a13b24ff24f19
parent: ddda6f55473c808cb379484b30badb60bc4daab0
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jan 10 12:41:46 EST 2022

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

--- a/sys/src/cmd/rc/io.c
+++ b/sys/src/cmd/rc/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);
--