ash: extend var_bash4.tests; nocode changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-08-05 18:29:13 +02:00
parent b0fbe4b540
commit 6814cbc928
2 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,4 @@
a*b-backslashstar-
In assignment: a*b-backslashstar-
Unquoted: a*b-backslashstar-
Quoted: a*b-backslashstar-
Done: 0

View File

@ -1,3 +1,6 @@
FOO='a*b\*c'
echo "${FOO//\\*/-backslashstar-}"
BAR=${FOO//\\*/-backslashstar-}
echo In assignment: "$BAR"
echo Unquoted: ${FOO//\\*/-backslashstar-}
echo Quoted: "${FOO//\\*/-backslashstar-}"
echo Done: $?