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

This commit is contained in:
cinap_lenrek 2022-01-10 17:41:46 +00:00
parent 85bfb0e9eb
commit 538b810712

View file

@ -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);