1 # first try some invalid patterns (do in subshell due to parsing error)
2 "$THIS_SH" -c 'echo ${+} ; echo moo'
3 "$THIS_SH" -c 'echo ${:+} ; echo moo'
10 echo _$1 _${1+} _${1:+} _${1+word} _${1:+word}
13 echo _$1 _${1+} _${1:+} _${1+word} _${1:+word}
16 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
19 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}
22 echo _$f _${f+} _${f:+} _${f+word} _${f:+word}