Bug fix from Vladimir Oleynic via Paul Fox for:
authorRob Landley <rob@landley.net>
Thu, 6 Jul 2006 01:09:21 +0000 (01:09 -0000)
committerRob Landley <rob@landley.net>
Thu, 6 Jul 2006 01:09:21 +0000 (01:09 -0000)
echo "+bond0" > /sys/class/net/bonding_masters
while true; do
  echo hello
done

shell/ash.c

index cc46881..ba99381 100644 (file)
@@ -3469,6 +3469,7 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv) {
        flushall();
 cmddone:
        exitstatus |= ferror(stdout);
+       clearerr(stdout);
        commandname = savecmdname;
        exsig = 0;
        handler = savehandler;