Eric Blake <address@hidden> writes:
> Should yesno() be setting the properties of stdin to be unbuffered for the
> duration of the getline(), so that the rest of stdin is not consumed too
> early?
That would make the code less portable/reliable, I think, and would
slow things down. POSIX does not require the behavior that you want.
Solaris 10 'rm' behaves like GNU rm here.
(Can you tell which way I'm leaning? :-)