runScript does not echo lines starting with #- any more

This commit is contained in:
2019-09-13 14:02:11 +02:00
parent 3d6115d1af
commit 108d7441ff
+3 -2
View File
@@ -203,10 +203,11 @@ int runScript(const char* filename, const char* args)
}
if (runScriptDebug)
printf("runScript expanded line (%ld chars): '%s'\n", len, line_exp);
printf("%s\n", line_exp);
p = line_exp;
while (isspace((unsigned char)*p)) p++;
if (*p == 0 || *p == '#') continue;
if (p[0] != '#' || p[1] != '-')
printf("%s\n", line_exp);
if (p[0] == 0 || p[0] == '#') continue;
/* find local variable assignments */
if ((x = strpbrk(p, "=(, \t\n\r")) != NULL && *x=='=')