[git commit] hush: add tests for unquoted < > in [[ ]]
Denys Vlasenko
vda.linux at googlemail.com
Sat Oct 31 02:51:37 UTC 2020
commit: https://git.busybox.net/busybox/commit/?id=b259e97d47de9a3f6b3dc4538159e57544c04a01
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
They pass.
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
shell/hush_test/hush-test2/strops4.right | 2 ++
shell/hush_test/hush-test2/strops4.tests | 3 +++
2 files changed, 5 insertions(+)
diff --git a/shell/hush_test/hush-test2/strops4.right b/shell/hush_test/hush-test2/strops4.right
new file mode 100644
index 000000000..53a176261
--- /dev/null
+++ b/shell/hush_test/hush-test2/strops4.right
@@ -0,0 +1,2 @@
+1:no:1
+2:YES:0
diff --git a/shell/hush_test/hush-test2/strops4.tests b/shell/hush_test/hush-test2/strops4.tests
new file mode 100755
index 000000000..bb381426d
--- /dev/null
+++ b/shell/hush_test/hush-test2/strops4.tests
@@ -0,0 +1,3 @@
+# < > are not redirect operators
+[[ a > b ]]; echo 1:no:$?
+[[ a < b ]]; echo 2:YES:$?
More information about the busybox-cvs
mailing list