bash: Handle errors in echo
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 1 Oct 2018 01:15:30 +0000 (21:15 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 2 Oct 2018 18:07:01 +0000 (14:07 -0400)
commitd4450dffe5905d832748ae6f10f7d2b76f211047
treef7cf9d965832f6f83e86669be115f2af40b9033c
parent034c2cc1c14fb3361519409d2ab2d04d33fcd7eb
bash: Handle errors in echo

Our echo patch was ignoring the return of write.  That meant that we
would never know if we echoed a bad value into a device file.  For
example, if you echo garbage > /prof/mpstat, errno and errstr are set.
Bash's echo would silently ignore the failure.  As of this commit, we
see the failure, but don't have errstr yet.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/sys-apps/bash/akaros-patches/4.3.30/0002-echo.patch