diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-04-21 16:00:41 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-04-21 16:00:41 +0200 |
commit | de5edadee2dca2896492f97ab3a56e389305e74d (patch) | |
tree | 80cdba9f7822f0ca9996dd1b5ceef0607c069c5d /coreutils/test.c | |
parent | 7d86384b246434e72533332f7f409a7aa9efeacb (diff) | |
download | busybox-w32-de5edadee2dca2896492f97ab3a56e389305e74d.tar.gz busybox-w32-de5edadee2dca2896492f97ab3a56e389305e74d.tar.bz2 busybox-w32-de5edadee2dca2896492f97ab3a56e389305e74d.zip |
special-case {true,false,test} --help
This also removes their help texts.
function old new delta
run_applet_no_and_exit 442 452 +10
packed_usage 30713 30625 -88
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/test.c')
-rw-r--r-- | coreutils/test.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 88cc55050..7b8b10cd9 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -39,14 +39,9 @@ | |||
39 | //config: help | 39 | //config: help |
40 | //config: Enable 64-bit support in test. | 40 | //config: Enable 64-bit support in test. |
41 | 41 | ||
42 | /* "test --help" does not print help (POSIX compat), only "[ --help" does. | 42 | /* "test --help" is special-cased to ignore --help */ |
43 | * We display "<applet> EXPRESSION ]" here (not "<applet> EXPRESSION") | 43 | //usage:#define test_trivial_usage NOUSAGE_STR |
44 | * Unfortunately, it screws up generated BusyBox.html. TODO. */ | 44 | //usage:#define test_full_usage "" |
45 | //usage:#define test_trivial_usage | ||
46 | //usage: "EXPRESSION ]" | ||
47 | //usage:#define test_full_usage "\n\n" | ||
48 | //usage: "Check file types, compare values etc. Return a 0/1 exit code\n" | ||
49 | //usage: "depending on logical value of EXPRESSION" | ||
50 | //usage: | 45 | //usage: |
51 | //usage:#define test_example_usage | 46 | //usage:#define test_example_usage |
52 | //usage: "$ test 1 -eq 2\n" | 47 | //usage: "$ test 1 -eq 2\n" |