projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c88d3ec
)
ash: fix set -o to not show "nameless" options
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 2 Aug 2019 14:43:36 +0000
(16:43 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 21 Oct 2019 14:54:40 +0000
(16:54 +0200)
Patch by Martijn Dekker <martijn@inlv.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index c0352602b9beb82959bf5bdbd14850e8a23931d7..305fb63483855b99c369bb870579a6ba31f29b2e 100644
(file)
--- a/
shell/ash.c
+++ b/
shell/ash.c
@@
-11091,6
+11091,8
@@
plus_minus_o(char *name, int val)
return 1;
}
for (i = 0; i < NOPTS; i++) {
+ if (optnames(i)[0] == '\0')
+ continue;
if (val) {
out1fmt("%-16s%s\n", optnames(i), optlist[i] ? "on" : "off");
} else {