diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-05-09 14:02:06 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-05-09 14:02:06 +0200 |
commit | 3a7f00eadcf400df5f9381b49f3ff5e882af0261 (patch) | |
tree | 9888ee49b9cb20e6802412f505320d15390e00b6 | |
parent | 465f05a4209b07e8a90bc80249d63e8ee07091da (diff) | |
download | busybox-w32-3a7f00eadcf400df5f9381b49f3ff5e882af0261.tar.gz busybox-w32-3a7f00eadcf400df5f9381b49f3ff5e882af0261.tar.bz2 busybox-w32-3a7f00eadcf400df5f9381b49f3ff5e882af0261.zip |
hush: add comment about abort on syntax error %{^}
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/hush.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index ac8e44778..810dafd35 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) | |||
1429 | { | 1429 | { |
1430 | bb_error_msg("syntax error: unterminated %s", s); | 1430 | bb_error_msg("syntax error: unterminated %s", s); |
1431 | //? source4.tests fails: in bash, echo ${^} in script does not terminate the script | 1431 | //? source4.tests fails: in bash, echo ${^} in script does not terminate the script |
1432 | // (but bash --posix, or if bash is run as "sh", does terminate in script, so maybe uncomment this?) | ||
1432 | // die_if_script(); | 1433 | // die_if_script(); |
1433 | } | 1434 | } |
1434 | 1435 | ||