diff options
Diffstat (limited to 'bin/sh/error.c')
-rw-r--r-- | bin/sh/error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/sh/error.c b/bin/sh/error.c index c76a9dc..96a0092 100644 --- a/bin/sh/error.c +++ b/bin/sh/error.c @@ -139,6 +139,8 @@ vwarning(const char *msg, va_list ap) { if (commandname) outfmt(out2, "%s: ", commandname); + else if (arg0) + outfmt(out2, "%s: ", arg0); doformat(out2, msg, ap); out2fmt_flush("\n"); } |