2015-01-28 21:28:48 -05:00
|
|
|
hello | hello
|
|
|
|
he'll'o | hello
|
|
|
|
he'llo | hello
|
|
|
|
he\'llo | he'llo
|
|
|
|
he\\'llo | he\llo
|
|
|
|
abc\tdef | abctdef
|
|
|
|
"abc\tdef" | abc\tdef
|
|
|
|
'abc\tdef' | abc\tdef
|
|
|
|
hello\ | hello
|
|
|
|
hello\\ | hello\
|
|
|
|
"hello | hello
|
|
|
|
"hello\" | hello"
|
|
|
|
"hel'lo" | hel'lo
|
|
|
|
'hello | hello
|
|
|
|
'hello\' | hello\
|
|
|
|
"''" | ''
|
|
|
|
$. | $.
|
2015-03-25 13:38:17 -04:00
|
|
|
$1 |
|
2015-01-28 21:28:48 -05:00
|
|
|
he$1x | hex
|
|
|
|
he$.x | he$.x
|
|
|
|
he$pwd. | he.
|
|
|
|
he$PWD | he/home
|
|
|
|
he\$PWD | he$PWD
|
|
|
|
he\\$PWD | he\/home
|
|
|
|
he\${} | he${}
|
|
|
|
he\${}xx | he${}xx
|
|
|
|
he${} | he
|
|
|
|
he${}xx | hexx
|
|
|
|
he${hi} | he
|
|
|
|
he${hi}xx | hexx
|
|
|
|
he${PWD} | he/home
|
|
|
|
he${.} | error
|
2015-01-28 21:28:48 -05:00
|
|
|
he${XXX:-000}xx | he000xx
|
|
|
|
he${PWD:-000}xx | he/homexx
|
|
|
|
he${XXX:-$PWD}xx | he/homexx
|
|
|
|
he${XXX:-${PWD:-yyy}}xx | he/homexx
|
|
|
|
he${XXX:-${YYY:-yyy}}xx | heyyyxx
|
|
|
|
he${XXX:YYY} | error
|
|
|
|
he${XXX:+${PWD}}xx | hexx
|
|
|
|
he${PWD:+${XXX}}xx | hexx
|
|
|
|
he${PWD:+${SHELL}}xx | hebashxx
|
|
|
|
he${XXX:+000}xx | hexx
|
|
|
|
he${PWD:+000}xx | he000xx
|
2015-01-28 21:28:48 -05:00
|
|
|
'he${XX}' | he${XX}
|
|
|
|
"he${PWD}" | he/home
|
|
|
|
"he'$PWD'" | he'/home'
|
|
|
|
"$PWD" | /home
|
|
|
|
'$PWD' | $PWD
|
|
|
|
'\$PWD' | \$PWD
|
|
|
|
'"hello"' | "hello"
|
|
|
|
he\$PWD | he$PWD
|
|
|
|
"he\$PWD" | he$PWD
|
|
|
|
'he\$PWD' | he\$PWD
|
|
|
|
he${PWD | error
|
2015-01-28 21:28:48 -05:00
|
|
|
he${PWD:=000}xx | error
|
|
|
|
he${PWD:+${PWD}:}xx | he/home:xx
|
|
|
|
he${XXX:-\$PWD:}xx | he$PWD:xx
|
|
|
|
he${XXX:-\${PWD}z}xx | he${PWDz}xx
|