Bug fix from Vladimir Oleynic via Paul Fox for:
echo "+bond0" > /sys/class/net/bonding_masters
while true; do
  echo hello
done  
diff --git a/shell/ash.c b/shell/ash.c
index cc46881..ba99381 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -3469,6 +3469,7 @@
 	flushall();
 cmddone:
 	exitstatus |= ferror(stdout);
+	clearerr(stdout);
 	commandname = savecmdname;
 	exsig = 0;
 	handler = savehandler;