From 33a5dd714e9ee600fc11f7945cae44494db1b659 Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Mon, 24 May 2004 21:20:27 +0000 Subject: [PATCH] Echo comments read from a script. --- src/iocsh/iocsh.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/iocsh/iocsh.cpp b/src/iocsh/iocsh.cpp index e7fc36f00..c4c17a6d0 100644 --- a/src/iocsh/iocsh.cpp +++ b/src/iocsh/iocsh.cpp @@ -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