From: Denys Vlasenko Date: Fri, 2 Aug 2019 14:43:36 +0000 (+0200) Subject: ash: fix set -o to not show "nameless" options X-Git-Tag: 1_32_0~175 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2f9c124f7daf4645ca62f6a25ca9be40fcc5275d;p=oweals%2Fbusybox.git ash: fix set -o to not show "nameless" options Patch by Martijn Dekker Signed-off-by: Denys Vlasenko --- 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) 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 {