diff options
author | Rob Landley <rob@landley.net> | 2021-01-31 02:32:36 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-01-31 02:32:36 -0600 |
commit | a577b476e45f9185ecfcc185f8d283a2e77caeee (patch) | |
tree | 4db0b80b55c7a3cf09de8962c3385ef92972f126 | |
parent | ff1b4ae050ab3ee12038f1bf91174732c4dcd040 (diff) | |
download | toybox-a577b476e45f9185ecfcc185f8d283a2e77caeee.tar.gz |
Elliott wants the test->[ symlink back. Enable when either sh or test enabled.
-rw-r--r-- | toys/posix/test.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/toys/posix/test.c b/toys/posix/test.c index d4bc1840..a56511e5 100644 --- a/toys/posix/test.c +++ b/toys/posix/test.c @@ -5,7 +5,7 @@ * See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html USE_TEST(NEWTOY(test, 0, TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_NOHELP|TOYFLAG_MAYFORK)) -USE_SH(OLDTOY([, test, TOYFLAG_NOFORK|TOYFLAG_NOHELP)) +USE_TOYBOX_TEST_GLUE(OLDTOY([, test, TOYFLAG_BIN|TOYFLAG_MAYFORK|TOYFLAG_NOHELP)) config TEST bool "test" @@ -28,7 +28,8 @@ config TEST --- Tests with one argument on each side of an operator: Two strings: - = are identical != differ + = are identical != differ < aaa<bbb > bbb>aaa + ~= matches regex Two integers: -eq equal -gt first > second -lt first < second -ne not equal -ge first >= second -le first <= second @@ -36,6 +37,11 @@ config TEST --- Modify or combine tests: ! 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 + bool + default y + depends on TEST || SH */ #include "toys.h" |