]> err.no Git - util-linux/commit
script: don't flush input when starting script
authorAndrew McGill <list2008@lunch.za.net>
Tue, 29 Jul 2008 21:56:05 +0000 (23:56 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Aug 2008 10:39:01 +0000 (12:39 +0200)
commite8c7a57b4fafb16a4cbf535c8e07066b20ed9551
treec4cbd712495490e4eccf1a133a6cae93299c1e15
parent8e678e21245cb4d7daf23a01bba5cb6a77d89af8
script: don't flush input when starting script

script currently flushed the input buffer when starting up.  This undocumented
behaviour prevents typeahead when starting up (e.g. as part of .profile).
Rather retain queued input. Don't discard queued output either.

Signed-off-by: Andrew McGill <andrew@lunch.za.net>
misc-utils/script.c