hush: make parse_dollar flag quited status regardless of glob escaping status
function old new delta parse_stream_dquoted 228 233 +5 parse_stream 2369 2371 +2 parse_dollar 730 717 -13 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 7/-13) Total: -6 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# Test for correct handling of backslashes
|
||||
a=qwerty
|
||||
|
||||
b=-$a-\t-\\-\"-\--\z-\*-\?-
|
||||
b=-$a-\t-\\-\"-\`-\--\z-\*-\?-
|
||||
echo b1=$b
|
||||
echo "b1=$b"
|
||||
b="-$a-\t-\\-\"-\--\z-\*-\?-"
|
||||
b="-$a-\t-\\-\"-\`-\--\z-\*-\?-"
|
||||
echo b2=$b
|
||||
echo "b2=$b"
|
||||
b='-$a-\t-\\-\"-\--\z-\*-\?-'
|
||||
b='-$a-\t-\\-\"-\`-\--\z-\*-\?-'
|
||||
echo b3=$b
|
||||
echo "b3=$b"
|
||||
|
||||
|
Reference in New Issue
Block a user