less at end of file

Jeremy C. Reed reed at reedmedia.net
Sat Dec 11 20:59:24 PST 2010


On Sat, 11 Dec 2010, Pierre Abbat wrote:

> When less gets to the end of file, sometimes it exits, sometimes it 
> doesn't. If I run "man less", it exits at end (this is the -e or -E 
> option), but if I run "man less |less", it doesn't. On Linux (at least 
> all the distros I've used), it doesn't exit at EOF. How come it does 
> on DFly?

less is not more. man uses "more" by default. more and less are same 
binary (but as you can see behaves differently depending which is 
called.) This is historical behavior going back to "more" of 3BSD and 
appears to be same behavior of its predecessor, "cr3".






More information about the Users mailing list