Package: less
Version: 418-1
X-Debbugs-Cc: [email protected]

Man says
       -F or --quit-if-one-screen
              Causes less to automatically exit if the entire file can be dis-
              played on the first screen.

However this is not true, try
$ LESS=XF less +G /etc/services
$ seq 111|LESS=FMXi less +G
They don't fit on the first screen but end less nonetheless.

Using plain LESS=F is even worse. They then seem like no-ops on my
xterm. The screen is restored before you notice anything. Only with
$ seq 1111111|LESS=F less +G
does the screen blank long enough so you know something happened.

Anyway, we were trying to solve
http://permalink.gmane.org/gmane.comp.version-control.git/103228

Say, why can't less have an xargs-like
       --no-run-if-empty
       -r     If the standard input does not contain any nonblanks, do not run
              the command.  Normally, the command is run once even if there is
              no input.  This option is a GNU extension.

But for zero bytes of input. I.e., less senses that input has closed
already at the 0th byte, and just exits without sending a single
curses character to the terminal.

Gee, never thought a simple pager program would end up not so
simple... but that's reality.

P.S.,
       _      (Underscore.)  Followed by one of the command line  option  let-
              ters,  this  will print a message describing the current setting
              of that option.  The setting of the option is not changed.

add a --dump-settings to dump them all at once.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to