aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-08-06 19:28:04 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-08-06 19:28:04 +0200
commitc8d305d89f06e0d6612b7acdc91cb8775f5667b1 (patch)
treea289c87b32274d97ef7713674aa9b3d5d1c6ccc8 /shell
parentf02c82f38c749f20a917aeb7ff4d929c5292a63d (diff)
downloadbusybox-w32-c8d305d89f06e0d6612b7acdc91cb8775f5667b1.tar.gz
busybox-w32-c8d305d89f06e0d6612b7acdc91cb8775f5667b1.tar.bz2
busybox-w32-c8d305d89f06e0d6612b7acdc91cb8775f5667b1.zip
var_bash4.tests: better wording in comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rwxr-xr-xshell/ash_test/ash-vars/var_bash4.tests8
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 01a0def51..a6e98fd86 100755
--- a/shell/ash_test/ash-vars/var_bash4.tests
+++ b/shell/ash_test/ash-vars/var_bash4.tests
@@ -1,12 +1,12 @@
1# This testcase demonstrates that backslashes are treated differently 1# This testcase demonstrates that backslashes are treated differently
2# in 1st and 2nd parts of ${var/search/repl}: 2# in 1st and 2nd parts of ${var/search/repl}:
3# if quoted: "${var/search/repl}", and repl contains \a (a non-special char), 3# if quoted ("${var/search/repl}"), and repl contains \a (a non-special char),
4# the backslash in repl stays; if unquoted, backslash: removed 4# the backslash in repl stays; if unquoted, backslash is removed.
5# But search part does not act like that: \a is always converted to just a, 5# But search part does not act like that: \a is always converted to just a,
6# even in quotes. 6# even in quotes.
7# 7#
8# bash4 (and probably bash3 too) result: "Quoted:" results are different - 8# bash4 (and probably bash3 too): "Quoted:" results are different from
9# they have extra backslash before z. 9# unquoted and assignment expansions - they have a backslash before z.
10 10
11v='a*b\*c' 11v='a*b\*c'
12echo 'Source: ' "$v" 12echo 'Source: ' "$v"