ash,hush: new test dollar_repl_slash_bash2.tests
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Mar 2018 21:25:24 +0000 (23:25 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Mar 2018 21:25:24 +0000 (23:25 +0200)
This fails for ash. hush works.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-quoting/dollar_repl_slash_bash2.right [new file with mode: 0644]
shell/ash_test/ash-quoting/dollar_repl_slash_bash2.tests [new file with mode: 0755]
shell/hush_test/hush-quoting/dollar_repl_slash_bash2.right [new file with mode: 0644]
shell/hush_test/hush-quoting/dollar_repl_slash_bash2.tests [new file with mode: 0755]

diff --git a/shell/ash_test/ash-quoting/dollar_repl_slash_bash2.right b/shell/ash_test/ash-quoting/dollar_repl_slash_bash2.right
new file mode 100644 (file)
index 0000000..2aead71
--- /dev/null
@@ -0,0 +1 @@
+\/a\/bc\/def\/file
diff --git a/shell/ash_test/ash-quoting/dollar_repl_slash_bash2.tests b/shell/ash_test/ash-quoting/dollar_repl_slash_bash2.tests
new file mode 100755 (executable)
index 0000000..64ca0c1
--- /dev/null
@@ -0,0 +1,2 @@
+var="/a/bc/def/file"
+echo "${var//\//\\/}"
diff --git a/shell/hush_test/hush-quoting/dollar_repl_slash_bash2.right b/shell/hush_test/hush-quoting/dollar_repl_slash_bash2.right
new file mode 100644 (file)
index 0000000..2aead71
--- /dev/null
@@ -0,0 +1 @@
+\/a\/bc\/def\/file
diff --git a/shell/hush_test/hush-quoting/dollar_repl_slash_bash2.tests b/shell/hush_test/hush-quoting/dollar_repl_slash_bash2.tests
new file mode 100755 (executable)
index 0000000..64ca0c1
--- /dev/null
@@ -0,0 +1,2 @@
+var="/a/bc/def/file"
+echo "${var//\//\\/}"