summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2018-11-23 15:32:57 -0500
committerChet Ramey <chet.ramey@case.edu>2018-11-23 15:32:57 -0500
commit2ae59c1134a75d5778997b7202b15b0586283042 (patch)
tree6a0fa496d41b222f5f69e3640d84932fb7a84778 /shell.c
parent2f5dfe5a18b4670eb4cea32c1c76295eb70a8865 (diff)
downloadbash-5.0-beta2.tar.gz
bash-5.0-beta2 releasebash-5.0-beta2
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell.c b/shell.c
index a9659bb8..3b60ba7d 100644
--- a/shell.c
+++ b/shell.c
@@ -1989,7 +1989,11 @@ show_shell_usage (fp, extra)
for (i = 0, set_opts = 0; shell_builtins[i].name; i++)
if (STREQ (shell_builtins[i].name, "set"))
- set_opts = savestring (shell_builtins[i].short_doc);
+ {
+ set_opts = savestring (shell_builtins[i].short_doc);
+ break;
+ }
+
if (set_opts)
{
s = strchr (set_opts, '[');