Echo lines read from scripts after macro expansion has completed.

This commit is contained in:
W. Eric Norum
2003-07-25 15:31:43 +00:00
parent 360c3f4a36
commit 0c8d2336b7
+6 -6
View File
@@ -331,12 +331,6 @@ iocsh (const char *pathname)
if (*raw == '#')
continue;
/*
* Echo commands read from scripts
*/
if ((prompt == NULL) && *raw)
puts(raw);
/*
* Expand macros
*/
@@ -344,6 +338,12 @@ iocsh (const char *pathname)
if ((line = macEnvExpand(raw)) == NULL)
continue;
/*
* Echo commands read from scripts
*/
if ((prompt == NULL) && *line)
puts(line);
/*
* Break line into words
*/