aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-02-01 10:05:04 -0600
committerRob Landley <rob@landley.net>2021-02-01 10:05:04 -0600
commitfdbdcc2ea1ab813f1fb9302f9a0e47d94ce33108 (patch)
treebdc7cacf84d67898352fe0655c1802e4b7ad744b /toys
parent3e889781acfc83f74ce5dc7f70321db204177f79 (diff)
downloadtoybox-fdbdcc2ea1ab813f1fb9302f9a0e47d94ce33108.tar.gz
The new TEST_GLUE config symbol for [ ] can't have TOYBOX prefix
or else singlemake enables it for all commands. (I was trying to move it out of the command namespace, but it's not a global config option either...)
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/toys/posix/test.c b/toys/posix/test.c
index 2f2dd918..d1ea1663 100644
--- a/toys/posix/test.c
+++ b/toys/posix/test.c
@@ -3,9 +3,11 @@
* Copyright 2018 Rob Landley <rob@landley.net>
*
* See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
+ *
+ * TODO sh [[ ]] options: < aaa<bbb > bbb>aaa ~= regex
USE_TEST(NEWTOY(test, 0, TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_NOHELP|TOYFLAG_MAYFORK))
-USE_TOYBOX_TEST_GLUE(OLDTOY([, test, TOYFLAG_BIN|TOYFLAG_MAYFORK|TOYFLAG_NOHELP))
+USE_TEST_GLUE(OLDTOY([, test, TOYFLAG_BIN|TOYFLAG_MAYFORK|TOYFLAG_NOHELP))
config TEST
bool "test"
@@ -28,7 +30,7 @@ config TEST
--- Tests with one argument on each side of an operator:
Two strings:
- = are identical != differ < aaa<bbb > bbb>aaa
+ = are identical != differ
Two integers:
-eq equal -gt first > second -lt first < second
@@ -38,7 +40,7 @@ config TEST
! EXPR not (swap true/false) EXPR -a EXPR and (are both true)
( EXPR ) evaluate this first EXPR -o EXPR or (is either true)
-config TOYBOX_TEST_GLUE
+config TEST_GLUE
bool
default y
depends on TEST || SH