Echo lines read from scripts after macro expansion has completed.
This commit is contained in:
+6
-6
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user