bltin.h: support ferror() echo.c: use ferror() to fail on output write errors Another piece of PR bin/39574.