Displaying 2 results from an estimated 2 matches for "cmddone".
Did you mean:
cmdone
2020 Mar 28
0
[klibc:update-dash] dash: eval: Report I/O error on stdout
...++ b/usr/dash/eval.c
@@ -952,6 +952,8 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv, int flags)
else
status = (*cmd->builtin)(argc, argv);
flushall();
+ if (outerr(out1))
+ warnx("%s: I/O error", commandname);
status |= outerr(out1);
exitstatus = status;
cmddone:
2020 Mar 28
0
[klibc:update-dash] dash: eval: Use sh_warnx instead of warnx
...ltin(const struct builtincmd *cmd, int argc, char **argv, int flags)
status = (*cmd->builtin)(argc, argv);
flushall();
if (outerr(out1))
- warnx("%s: I/O error", commandname);
+ sh_warnx("%s: I/O error", commandname);
status |= outerr(out1);
exitstatus = status;
cmddone: