diff options
author | Denys Vlasenko | 2010-08-30 13:54:12 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-08-30 13:54:12 +0200 |
commit | f7a8433535b7072b61acf31d97dab7da1d4b140b (patch) | |
tree | d73c4e6cc2cd619b35d35c426203c7b875ec9f74 | |
parent | 25b47553026a0f05955942e014ec42a9250e0e86 (diff) | |
download | busybox-f7a8433535b7072b61acf31d97dab7da1d4b140b.zip busybox-f7a8433535b7072b61acf31d97dab7da1d4b140b.tar.gz |
ash: add another ${v/a/b} test we currently fail
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | shell/ash_test/ash-vars/var_bash5.right | 4 | ||||
-rwxr-xr-x | shell/ash_test/ash-vars/var_bash5.tests | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/var_bash5.right b/shell/ash_test/ash-vars/var_bash5.right new file mode 100644 index 0000000..278ed32 --- /dev/null +++ b/shell/ash_test/ash-vars/var_bash5.right @@ -0,0 +1,4 @@ +a/ +a/d +a/e/f +Done: 0 diff --git a/shell/ash_test/ash-vars/var_bash5.tests b/shell/ash_test/ash-vars/var_bash5.tests new file mode 100755 index 0000000..3f49321 --- /dev/null +++ b/shell/ash_test/ash-vars/var_bash5.tests @@ -0,0 +1,11 @@ +# This testcase checks whether slashes in ${v/a/b} are parsed before or after expansions +# in a part + +v='a/b/c' +s='b/c' +r='e/f' +echo "${v/$s}" +echo "${v/$s/d}" +echo "${v/$s/$r}" + +echo Done: $? |