aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ash_test/ash-vars/var_bash4.right4
-rwxr-xr-xshell/ash_test/ash-vars/var_bash4.tests5
2 files changed, 7 insertions, 2 deletions
diff --git a/shell/ash_test/ash-vars/var_bash4.right b/shell/ash_test/ash-vars/var_bash4.right
index 33a511238..fc3a9e41c 100644
--- a/shell/ash_test/ash-vars/var_bash4.right
+++ b/shell/ash_test/ash-vars/var_bash4.right
@@ -1,2 +1,4 @@
-a*b-backslashstar-
+In assignment: a*b-backslashstar-
+Unquoted: a*b-backslashstar-
+Quoted: a*b-backslashstar-
Done: 0
diff --git a/shell/ash_test/ash-vars/var_bash4.tests b/shell/ash_test/ash-vars/var_bash4.tests
index 304b3d91c..3b323c576 100755
--- a/shell/ash_test/ash-vars/var_bash4.tests
+++ b/shell/ash_test/ash-vars/var_bash4.tests
@@ -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: $?