diff options
author | Denys Vlasenko | 2010-08-05 18:29:13 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-08-05 18:29:13 +0200 |
commit | 6814cbc9288601840aedb372e2bd84dab76ffa43 (patch) | |
tree | d167bb86f352d5b3fbb71ad8fa8267effd4de251 /shell | |
parent | b0fbe4b5409b136e0c80788cf183ec24237e9c97 (diff) | |
download | busybox-6814cbc9288601840aedb372e2bd84dab76ffa43.zip busybox-6814cbc9288601840aedb372e2bd84dab76ffa43.tar.gz |
ash: extend var_bash4.tests; nocode changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash_test/ash-vars/var_bash4.right | 4 | ||||
-rwxr-xr-x | shell/ash_test/ash-vars/var_bash4.tests | 5 |
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 33a5112..fc3a9e4 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 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: $? |