From 538b8107122d55be6a941384dc499d56b35f99e1 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 10 Jan 2022 17:41:46 +0000 Subject: [PATCH] rc: fix pwrd() regression, forgot <= ' ' case from needsrcquote()... sorry :( --- sys/src/cmd/rc/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/rc/io.c b/sys/src/cmd/rc/io.c index 6ec226641..7c1a27ea1 100644 --- a/sys/src/cmd/rc/io.c +++ b/sys/src/cmd/rc/io.c @@ -138,7 +138,7 @@ void 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);