From dff960b3c3687c11b5bd60c5dd3adbe440d51791 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 24 Sep 2002 22:06:54 +0000 Subject: [PATCH] Added command-line echoing when executing a script. --- src/iocsh/iocsh.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/iocsh/iocsh.cpp b/src/iocsh/iocsh.cpp index 6335ea6b1..ec47af110 100644 --- a/src/iocsh/iocsh.cpp +++ b/src/iocsh/iocsh.cpp @@ -278,6 +278,9 @@ iocsh (const char *pathname) if (*line == '#') continue; + if ((prompt == NULL) && *line) + puts(line); + /* * Break line into words */