shells: add tests for backslashes in export VAR=VAL
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 14 May 2019 17:15:20 +0000 (19:15 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 14 May 2019 17:15:20 +0000 (19:15 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-misc/export1.right [new file with mode: 0644]
shell/ash_test/ash-misc/export1.tests [new file with mode: 0755]
shell/hush_test/hush-misc/export1.right [new file with mode: 0644]
shell/hush_test/hush-misc/export1.tests [new file with mode: 0755]

diff --git a/shell/ash_test/ash-misc/export1.right b/shell/ash_test/ash-misc/export1.right
new file mode 100644 (file)
index 0000000..56647af
--- /dev/null
@@ -0,0 +1 @@
+|\w \\ \ \|
diff --git a/shell/ash_test/ash-misc/export1.tests b/shell/ash_test/ash-misc/export1.tests
new file mode 100755 (executable)
index 0000000..4ffb40b
--- /dev/null
@@ -0,0 +1,2 @@
+export Z='\w \\ \ \'
+echo "|$Z|"
diff --git a/shell/hush_test/hush-misc/export1.right b/shell/hush_test/hush-misc/export1.right
new file mode 100644 (file)
index 0000000..56647af
--- /dev/null
@@ -0,0 +1 @@
+|\w \\ \ \|
diff --git a/shell/hush_test/hush-misc/export1.tests b/shell/hush_test/hush-misc/export1.tests
new file mode 100755 (executable)
index 0000000..4ffb40b
--- /dev/null
@@ -0,0 +1,2 @@
+export Z='\w \\ \ \'
+echo "|$Z|"