summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2019-05-14 19:15:20 +0200
committerDenys Vlasenko2019-05-14 19:15:20 +0200
commit63d765e666a8b23e3923acecdc41be71d5679439 (patch)
treef9abff4ed55ada540f7acef0719de6eaf38f9e42
parentd8bd7012a30c6ce9efe26d06880ac223143709ad (diff)
downloadbusybox-63d765e666a8b23e3923acecdc41be71d5679439.zip
busybox-63d765e666a8b23e3923acecdc41be71d5679439.tar.gz
shells: add tests for backslashes in export VAR=VAL
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash_test/ash-misc/export1.right1
-rwxr-xr-xshell/ash_test/ash-misc/export1.tests2
-rw-r--r--shell/hush_test/hush-misc/export1.right1
-rwxr-xr-xshell/hush_test/hush-misc/export1.tests2
4 files changed, 6 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/export1.right b/shell/ash_test/ash-misc/export1.right
new file mode 100644
index 0000000..56647af
--- /dev/null
+++ b/shell/ash_test/ash-misc/export1.right
@@ -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
index 0000000..4ffb40b
--- /dev/null
+++ b/shell/ash_test/ash-misc/export1.tests
@@ -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
index 0000000..56647af
--- /dev/null
+++ b/shell/hush_test/hush-misc/export1.right
@@ -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
index 0000000..4ffb40b
--- /dev/null
+++ b/shell/hush_test/hush-misc/export1.tests
@@ -0,0 +1,2 @@
+export Z='\w \\ \ \'
+echo "|$Z|"