blob: 3377eb27fb4311d9b60238bb30777bbe08f80ad0 [file] [log] [blame]
Denys Vlasenko83e434d2018-07-20 17:36:06 +02001f() { echo start:; for i; do echo "|$i|"; done; echo end; }
2x=a
3
4echo "Unquoted '':"
5f ${x:+''}
6f ${x:+'' }
7f ${x:+ ''}
8f ${x:+ '' }
9f ${x:+'' ''}
10
11echo
12echo 'Unquoted "":'
13f ${x:+""}
14f ${x:+"" }
15f ${x:+ ""}
16f ${x:+ "" }
17f ${x:+"" ""}
18
19echo
20echo "Quoted '':"
21f "${x:+''}"
22f "${x:+'' }"
23f "${x:+ ''}"
24f "${x:+ '' }"
25f "${x:+'' ''}"
26
27echo
28echo 'Quoted "":'
29f "${x:+""}"
30f "${x:+"" }"
31f "${x:+ ""}"
32f "${x:+ "" }"
33f "${x:+"" ""}"