← Commit list

dd79e1d4d

Denys Vlasenko
Denys Vlasenko
2022-08-30
SUCCESS Duration: 159s

Subject

fix [ --help ] and [[ --help ]]

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/appletlib.c+3 -0
@@ -937,6 +937,9 @@ void FAST_FUNC show_usage_if_dash_dash_help(int applet_no, char **argv)
# endif
# if defined APPLET_NO_echo
&& applet_no != APPLET_NO_echo
+# endif
+# if ENABLE_TEST1 || ENABLE_TEST2
+ && argv[0][0] != '[' /* exclude [ --help ] and [[ --help ]] too */
# endif
) {
if (argv[1] && strcmp(argv[1], "--help") == 0) {