summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2023-05-09 14:02:06 +0200
committerDenys Vlasenko2023-05-09 14:02:06 +0200
commit3a7f00eadcf400df5f9381b49f3ff5e882af0261 (patch)
tree9888ee49b9cb20e6802412f505320d15390e00b6 /shell
parent465f05a4209b07e8a90bc80249d63e8ee07091da (diff)
downloadbusybox-3a7f00eadcf400df5f9381b49f3ff5e882af0261.zip
busybox-3a7f00eadcf400df5f9381b49f3ff5e882af0261.tar.gz
hush: add comment about abort on syntax error %{^}
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c
index ac8e447..810dafd 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1429,6 +1429,7 @@ static void syntax_error_unterm_str(unsigned lineno UNUSED_PARAM, const char *s)
{
bb_error_msg("syntax error: unterminated %s", s);
//? source4.tests fails: in bash, echo ${^} in script does not terminate the script
+// (but bash --posix, or if bash is run as "sh", does terminate in script, so maybe uncomment this?)
// die_if_script();
}