output.c output.h: expose OUTPUT_ERR (flag for an exposed flags variable)bltin.h: support ferror()echo.c: use ferror() to fail on output write errorsAnother piece of PR bin/39574.