aboutsummaryrefslogtreecommitdiffstats
path: root/builtins/help.def
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-21 20:51:19 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-21 20:51:19 -0500
commit0001803f0b9523c94fa2ede48eaecb047fef4524 (patch)
treef334332811e033ff966d94f6268f0629a94304b3 /builtins/help.def
parent89a92869e56aba4e4cab2d639c00a86f0545c862 (diff)
downloadandroid_external_bash-0001803f0b9523c94fa2ede48eaecb047fef4524.tar.gz
android_external_bash-0001803f0b9523c94fa2ede48eaecb047fef4524.tar.bz2
android_external_bash-0001803f0b9523c94fa2ede48eaecb047fef4524.zip
Bash-4.1 distribution source
Diffstat (limited to 'builtins/help.def')
-rw-r--r--builtins/help.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtins/help.def b/builtins/help.def
index 004abe2..f857af9 100644
--- a/builtins/help.def
+++ b/builtins/help.def
@@ -23,7 +23,7 @@ $PRODUCES help.c
$BUILTIN help
$FUNCTION help_builtin
$DEPENDS_ON HELP_BUILTIN
-$SHORT_DOC help [-ds] [pattern ...]
+$SHORT_DOC help [-dms] [pattern ...]
Display information about builtin commands.
Displays brief summaries of builtin commands. If PATTERN is
@@ -350,6 +350,8 @@ A star (*) next to a name means that the command is disabled.\n\
width /= 2;
if (width > sizeof (blurb))
width = sizeof (blurb);
+ if (width <= 3)
+ width = 40;
height = (num_shell_builtins + 1) / 2; /* number of rows */
for (i = 0; i < height; i++)