aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-08-02 16:43:36 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-08-02 16:44:35 +0200
commit2f9c124f7daf4645ca62f6a25ca9be40fcc5275d (patch)
tree2d3f283be2dafb5c247bce13ec537044fd986c44
parent16474cf246cb10b982f7365b201f32a930e8af95 (diff)
downloadbusybox-w32-2f9c124f7daf4645ca62f6a25ca9be40fcc5275d.tar.gz
busybox-w32-2f9c124f7daf4645ca62f6a25ca9be40fcc5275d.tar.bz2
busybox-w32-2f9c124f7daf4645ca62f6a25ca9be40fcc5275d.zip
ash: fix set -o to not show "nameless" options
Patch by Martijn Dekker <martijn@inlv.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index c0352602b..305fb6348 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11091,6 +11091,8 @@ plus_minus_o(char *name, int val)
11091 return 1; 11091 return 1;
11092 } 11092 }
11093 for (i = 0; i < NOPTS; i++) { 11093 for (i = 0; i < NOPTS; i++) {
11094 if (optnames(i)[0] == '\0')
11095 continue;
11094 if (val) { 11096 if (val) {
11095 out1fmt("%-16s%s\n", optnames(i), optlist[i] ? "on" : "off"); 11097 out1fmt("%-16s%s\n", optnames(i), optlist[i] ? "on" : "off");
11096 } else { 11098 } else {