83e434d5b5
This wasn't an ash bug in dollar_altvalue9, it was hush bug (and bash!) function old new delta expand_one_var 2236 2254 +18 expand_vars_to_list 1097 1103 +6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 24/0) Total: 24 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
34 lines
427 B
Plaintext
Executable File
34 lines
427 B
Plaintext
Executable File
f() { echo start:; for i; do echo "|$i|"; done; echo end; }
|
|
x=a
|
|
|
|
echo "Unquoted '':"
|
|
f ${x:+''}
|
|
f ${x:+'' }
|
|
f ${x:+ ''}
|
|
f ${x:+ '' }
|
|
f ${x:+'' ''}
|
|
|
|
echo
|
|
echo 'Unquoted "":'
|
|
f ${x:+""}
|
|
f ${x:+"" }
|
|
f ${x:+ ""}
|
|
f ${x:+ "" }
|
|
f ${x:+"" ""}
|
|
|
|
echo
|
|
echo "Quoted '':"
|
|
f "${x:+''}"
|
|
f "${x:+'' }"
|
|
f "${x:+ ''}"
|
|
f "${x:+ '' }"
|
|
f "${x:+'' ''}"
|
|
|
|
echo
|
|
echo 'Quoted "":'
|
|
f "${x:+""}"
|
|
f "${x:+"" }"
|
|
f "${x:+ ""}"
|
|
f "${x:+ "" }"
|
|
f "${x:+"" ""}"
|