ash: add another ${v/a/b} test we currently fail
authorDenys Vlasenko <dvlasenk@redhat.com>
Mon, 30 Aug 2010 11:54:12 +0000 (13:54 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Mon, 30 Aug 2010 11:54:12 +0000 (13:54 +0200)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
shell/ash_test/ash-vars/var_bash5.right [new file with mode: 0644]
shell/ash_test/ash-vars/var_bash5.tests [new file with mode: 0755]

diff --git a/shell/ash_test/ash-vars/var_bash5.right b/shell/ash_test/ash-vars/var_bash5.right
new file mode 100644 (file)
index 0000000..278ed32
--- /dev/null
@@ -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 (executable)
index 0000000..3f49321
--- /dev/null
@@ -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: $?