Ignore ``#'' properly when told to

This commit is contained in:
Brian Somers 2000-10-28 23:56:03 +00:00
parent 59038c5722
commit 2661ef38a2

View file

@ -301,7 +301,7 @@ MakeArgs(char *script, char **pvect, int maxargs, int flags)
nargs = 0;
while (*script) {
script += strspn(script, " \t");
if (*script == '#' && flags & PARSE_NOHASH) {
if (*script == '#' && !(flags & PARSE_NOHASH)) {
*script = '\0';
break;
}