Allow inline # comments for terminal commands

This commit is contained in:
Stefan Rueger
2023-05-15 17:08:41 +01:00
parent a1bbbe904c
commit e7fb2e2b34

View File

@@ -1097,6 +1097,8 @@ int tokenize(char *s, char ***argvp) {
for(n=0, r=s; *r; ) {
nexttok(r, &q, &r);
if(*q == '#') // Inline comment: ignore rest of line
break;
strcpy(buf, q);
argv[n++] = buf;
buf += strlen(q) + 1;