diff options
-rw-r--r-- | bin/sh/exec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/sh/exec.c b/bin/sh/exec.c index 85794d9..b9d7838 100644 --- a/bin/sh/exec.c +++ b/bin/sh/exec.c @@ -785,9 +785,12 @@ typecmd_impl(int argc, char **argv, int cmd) out1fmt("%s\n", argv[i]); else out1fmt(" is %s\n", argv[i]); + } else { + if (cmd != TYPECMD_SMALLV) + out1fmt(": %s\n", + strerror(errno)); + error |= 127; } - else - out1fmt(": %s\n", strerror(errno)); } break; } |