diff options
author | Denys Vlasenko | 2021-06-19 15:28:10 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-06-19 15:45:45 +0200 |
commit | 97c3b5e3ff252b3399d10835d5c906886a7499f4 (patch) | |
tree | 91b0292f8621f48f3a35b5854e99b0998f2e4895 /shell/ash_test/ash-parsing/bkslash_newline4.right | |
parent | fd217c1cbf7a702ad632bb21f7757433de1755b7 (diff) | |
download | busybox-97c3b5e3ff252b3399d10835d5c906886a7499f4.zip busybox-97c3b5e3ff252b3399d10835d5c906886a7499f4.tar.gz |
hush: fix bkslash+newline handling and number validation in ${NN} and ${#NN}
Entering "${1a}" into interactive shell was making it exit.
function old new delta
parse_dollar 824 958 +134
i_getch_and_eat_bkslash_nl - 44 +44
parse_expr 917 938 +21
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 199/0) Total: 199 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-parsing/bkslash_newline4.right')
-rw-r--r-- | shell/ash_test/ash-parsing/bkslash_newline4.right | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ash_test/ash-parsing/bkslash_newline4.right b/shell/ash_test/ash-parsing/bkslash_newline4.right new file mode 100644 index 0000000..2110716 --- /dev/null +++ b/shell/ash_test/ash-parsing/bkslash_newline4.right @@ -0,0 +1,4 @@ +1:1 +22:22 +3:3 +Ok:0 |