hush/shell/hush_test/hush-vars/param_expand_bash_substring.right
Denys Vlasenko e85248afa2 hush: fix segfault in ${?:N:M}
function                                             old     new   delta
expand_vars_to_list                                 2374    2409     +35
builtin_umask                                        132     133      +1
builtin_exit                                          47      48      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 37/0)               Total: 37 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-05-22 06:20:26 +02:00

65 lines
894 B
Plaintext

hush: syntax error: unterminated ${name}
hush: syntax error: unterminated ${name}
hush: syntax error: unterminated ${name}
hush: syntax error: unterminated ${name}
0123456789
1 =||
1:1 =||
1:1:2=||
1::2 =||
1:1: =||
1:: =||
1 =|0123|
1:1 =|123|
1:1:2=|12|
1::2 =|01|
1:1: =||
1:: =||
f =||
f:1 =||
f:1:2=||
f::2 =||
f:1: =||
f:: =||
f =||
f:1 =||
f:1:2=||
f::2 =||
f:1: =||
f:: =||
f =|a|
f:1 =||
f:1:2=||
f::2 =|a|
f:1: =||
f:: =||
f =|0123456789|
f:1 =|123456789|
f:1:2=|12|
f::2 =|01|
f:1: =||
f:: =||
Substrings from special vars
? =|0|
?:1 =||
?:1:2=||
?::2 =|0|
?:1: =||
?:: =||
# =|11|
#:1 =|1|
#:1:2=|1|
#::2 =|11|
#:1: =||
#:: =||
Substrings with expressions
f =|01234567|
f:1+1:2+2 =|2345|
f:-1:2+2 =|01234567|
f:1:f =|1234567|
f:1:$f =|1234567|
f:1:${f} =|1234567|
f:1:${f:3:1} =|123|
f:1:1`echo 1`=|1|
Done