//config: help
//config: Enable support for test builtin in ash.
//config:
+//config:config ASH_HELP
+//config: bool "help builtin"
+//config: default y
+//config: depends on ASH
+//config: help
+//config: Enable help builtin in ash.
+//config:
//config:config ASH_CMDCMD
//config: bool "'command' command to override shell builtins"
//config: default y
if (!did_banner) {
/* note: ash and hush share this string */
out1fmt("\n\n%s %s\n"
- "Enter 'help' for a list of built-in commands."
- "\n\n",
+ IF_ASH_HELP("Enter 'help' for a list of built-in commands.\n")
+ "\n",
bb_banner,
"built-in shell (ash)"
);
#if ENABLE_ASH_GETOPTS
static int getoptscmd(int, char **) FAST_FUNC;
#endif
-#if !ENABLE_FEATURE_SH_EXTRA_QUIET
+#if ENABLE_ASH_HELP
static int helpcmd(int, char **) FAST_FUNC;
#endif
#if MAX_HISTORY
{ BUILTIN_REGULAR "getopts" , getoptscmd },
#endif
{ BUILTIN_NOSPEC "hash" , hashcmd },
-#if !ENABLE_FEATURE_SH_EXTRA_QUIET
+#if ENABLE_ASH_HELP
{ BUILTIN_NOSPEC "help" , helpcmd },
#endif
#if MAX_HISTORY
/* ============ Builtins */
-#if !ENABLE_FEATURE_SH_EXTRA_QUIET
-/*
- * Lists available builtins
- */
+#if ENABLE_ASH_HELP
static int FAST_FUNC
helpcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
{
col = 0;
}
}
-#if ENABLE_FEATURE_SH_STANDALONE
+# if ENABLE_FEATURE_SH_STANDALONE
{
const char *a = applet_names;
while (*a) {
a += strlen(a) + 1;
}
}
-#endif
+# endif
out1fmt("\n\n");
return EXIT_SUCCESS;
}
-#endif /* FEATURE_SH_EXTRA_QUIET */
+#endif
#if MAX_HISTORY
static int FAST_FUNC