[PATCH] less: respect -E (quit at EOF)
Denys Vlasenko
vda.linux at googlemail.com
Wed Oct 16 17:52:21 UTC 2013
On Friday 13 September 2013 23:13, Aaro Koskinen wrote:
> less displays -E in help text, but it's not doing anything. Make it quit
> less when the last lines of the file have been printed.
Buggy. Try this command:
{ sleep 1; cat busybox_unstripped.map; sleep 1; } | ./busybox less -E
in the build tree. less will exit immediately, even though
not entire input is seen yet.
You probably want to also check that (eof_error <= 0).
--
vda
More information about the busybox
mailing list