ash: extend var_bash4.tests; nocode changes
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 5 Aug 2010 16:29:13 +0000 (18:29 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 5 Aug 2010 16:29:13 +0000 (18:29 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-vars/var_bash4.right
shell/ash_test/ash-vars/var_bash4.tests

index 33a511238f4d7b171dd5e571468998c6f8bef5eb..fc3a9e41c01efbe9db70b6a5a5d4a2f84b375ebb 100644 (file)
@@ -1,2 +1,4 @@
-a*b-backslashstar-
+In assignment: a*b-backslashstar-
+Unquoted: a*b-backslashstar-
+Quoted: a*b-backslashstar-
 Done: 0
index 304b3d91c7a70afa6700257a440fae0ce68a1697..3b323c5765bead678b5f0cc45e234ea48055eb16 100755 (executable)
@@ -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: $?