Echo comments read from a script.

This commit is contained in:
W. Eric Norum
2004-05-24 21:20:27 +00:00
parent b5ee956916
commit 33a5dd714e

View File

@@ -334,10 +334,14 @@ iocsh (const char *pathname)
lineno++;
/*
* Ignore comment lines
* Ignore comment lines other than to echo
* them if they came from a script.
*/
if (*raw == '#')
if (*raw == '#') {
if (prompt == NULL)
puts(raw);
continue;
}
/*
* Expand macros