diff options
Diffstat (limited to 'shell/ash_test/ash-vars/var_bash4.tests')
-rwxr-xr-x | shell/ash_test/ash-vars/var_bash4.tests | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/ash_test/ash-vars/var_bash4.tests b/shell/ash_test/ash-vars/var_bash4.tests index 304b3d9..3b323c5 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: $? |