[EMAIL PROTECTED] (Bob Proulx) wrote: > Zach J. Elko wrote: >> Granted, it executes that command as the user who ran su, I think it >> would be better to just display an error message and then take the >> excess bytes and throw them into /dev/null. > > The problem is how do you know when to stop reading?
When you see a newline. If you fill your buffer first, report the error, read and discard the rest of the current line, and start over reading the next line. paul _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils