From 0c8d2336b785e5f10b9458c85b4d73771ade9d9d Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Fri, 25 Jul 2003 15:31:43 +0000 Subject: [PATCH] Echo lines read from scripts after macro expansion has completed. --- src/iocsh/iocsh.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/iocsh/iocsh.cpp b/src/iocsh/iocsh.cpp index bfdaa4565..41675f4aa 100644 --- a/src/iocsh/iocsh.cpp +++ b/src/iocsh/iocsh.cpp @@ -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 */