diff options
author | Denys Vlasenko | 2010-08-06 19:28:04 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-08-06 19:28:04 +0200 |
commit | c8d305d89f06e0d6612b7acdc91cb8775f5667b1 (patch) | |
tree | a289c87b32274d97ef7713674aa9b3d5d1c6ccc8 | |
parent | f02c82f38c749f20a917aeb7ff4d929c5292a63d (diff) | |
download | busybox-c8d305d89f06e0d6612b7acdc91cb8775f5667b1.zip busybox-c8d305d89f06e0d6612b7acdc91cb8775f5667b1.tar.gz |
var_bash4.tests: better wording in comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | shell/ash_test/ash-vars/var_bash4.tests | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/ash_test/ash-vars/var_bash4.tests b/shell/ash_test/ash-vars/var_bash4.tests index 01a0def..a6e98fd 100755 --- a/shell/ash_test/ash-vars/var_bash4.tests +++ b/shell/ash_test/ash-vars/var_bash4.tests @@ -1,12 +1,12 @@ # This testcase demonstrates that backslashes are treated differently # in 1st and 2nd parts of ${var/search/repl}: -# if quoted: "${var/search/repl}", and repl contains \a (a non-special char), -# the backslash in repl stays; if unquoted, backslash: removed +# if quoted ("${var/search/repl}"), and repl contains \a (a non-special char), +# the backslash in repl stays; if unquoted, backslash is removed. # But search part does not act like that: \a is always converted to just a, # even in quotes. # -# bash4 (and probably bash3 too) result: "Quoted:" results are different - -# they have extra backslash before z. +# bash4 (and probably bash3 too): "Quoted:" results are different from +# unquoted and assignment expansions - they have a backslash before z. v='a*b\*c' echo 'Source: ' "$v" |