1 # First try some invalid patterns. Do in subshell due to parsing error.
2 # (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
3 "$THIS_SH" -c 'echo ${=}' SHELL
4 "$THIS_SH" -c 'echo ${:=}' SHELL
7 "$THIS_SH" -c 'echo ${#=}' SHELL
8 "$THIS_SH" -c 'echo ${#:=}' SHELL
11 "$THIS_SH" -c 'set --; echo _${1=}' SHELL
12 "$THIS_SH" -c 'set --; echo _${1:=}' SHELL
13 "$THIS_SH" -c 'set --; echo _${1=word}' SHELL
14 "$THIS_SH" -c 'set --; echo _${1:=word}' SHELL
17 "$THIS_SH" -c 'set aa; echo _${1=}' SHELL
18 "$THIS_SH" -c 'set aa; echo _${1:=}' SHELL
19 "$THIS_SH" -c 'set aa; echo _${1=word}' SHELL
20 "$THIS_SH" -c 'set aa; echo _${1:=word}' SHELL
26 unset f; echo _${f=word}
27 unset f; echo _${f:=word}
38 f=fff; echo _${f=word}
39 f=fff; echo _${f:=word}