in reply to Re: PIPE less
in thread PIPE less

My less (version 436 by Mark Nudelman) doesn't page unless its STDOUT is connected to a terminal

Replies are listed 'Best First'.
Re^3: PIPE less
by Crackers2 (Parson) on Apr 16, 2010 at 18:26 UTC

    For the reason outlined by BrowserUK below, I often like to just dump the help to stdout so I can use (in most terminals) Shift-PgUp and Shift-PgDown to look through it while actually typing the command.

    Of course that's still possible either way. Doing something like "program --help | cat" could probably trick less into thinking it's not connected to a terminal.