diff options
author | Denys Vlasenko | 2019-08-02 16:43:36 +0200 |
---|---|---|
committer | Denys Vlasenko | 2019-10-21 16:54:40 +0200 |
commit | 244c0ebb4f71fb9f400d2242bbdeaca0c138c547 (patch) | |
tree | e611adfc14aa56e58fd50f778c30a74199087d5e | |
parent | c88d3ec458e66d8c25af81ae7b2044933c069563 (diff) | |
download | busybox-244c0ebb4f71fb9f400d2242bbdeaca0c138c547.zip busybox-244c0ebb4f71fb9f400d2242bbdeaca0c138c547.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index c035260..305fb63 100644 --- 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 { |