[git commit] shells: add tests for backslashes in export VAR=VAL

Denys Vlasenko vda.linux at googlemail.com
Tue May 14 17:15:20 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=63d765e666a8b23e3923acecdc41be71d5679439
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash_test/ash-misc/export1.right   | 1 +
 shell/ash_test/ash-misc/export1.tests   | 2 ++
 shell/hush_test/hush-misc/export1.right | 1 +
 shell/hush_test/hush-misc/export1.tests | 2 ++
 4 files changed, 6 insertions(+)

diff --git a/shell/ash_test/ash-misc/export1.right b/shell/ash_test/ash-misc/export1.right
new file mode 100644
index 000000000..56647af8e
--- /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 000000000..4ffb40bdc
--- /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 000000000..56647af8e
--- /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 000000000..4ffb40bdc
--- /dev/null
+++ b/shell/hush_test/hush-misc/export1.tests
@@ -0,0 +1,2 @@
+export Z='\w \\ \ \'
+echo "|$Z|"


More information about the busybox-cvs mailing list