Hi,

Patching bltin/printf.c to generate an error message does not seem to
make much sense given that the non-zero exit status is set by eval.c.
Why can the error message not be generated there as well? This is also
what I do in FreeBSD sh (and I return exit status 2 instead of 1 in this
situation).

Note that echo and printf are not the only builtins that output things
to stdout and can encounter errors because of that. Some shells ignore
this fact, pretending it is OK if builtins like jobs, set, times and
trap cannot write their output.

ksh93 and mksh appear not to print an error message either.

-- 
Jilles Tjoelker


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to