Willie WY Wong <wong...@member.ams.org> writes:

> On Thu, Feb 23, 2012 at 06:24:29PM -0500, Penguin Lover Harry Putnam squawked:
>> > On Thu, Feb 23, 2012 at 08:42:00PM +0000, Alan Mackenzie wrote:
>> >   
>> >> (a) using less, and have it take just 10 screen lines; (b) using cat etc.,
>> >> and have the interesting part scroll away.
>> >
>> > (c) use less -F and less will automatically exit if the entire file can fit
>> > on one screen.  One can export LESS='-F' to have less always do the above.
>> 
>> Maybe I'm seeing behavior that is not supposed to happen, but if I say
>> echo '## ONE LINE' > test
>> 
>> And then say less -F test   
>> 
>> I do not get to see the one line.   I don't think that's what Alan
>> was looking for is it?
>
> That is not supposed to happen. Is that in a X terminal or on the text
> console? 

Real xterm in kde desktop (not konsole or any of the wannabes, just
plain xterm)

   xterm -version
   XTerm(276)

> If you `less test` and quit, does the content of the test file stay on
> screen or does it get cleared (I bet the former)? Try `less -XF test`
> in that case, and see if it helps. 

(I guess you meant `latter'... not `former' eh?)

Here it is cleared... and yup `less -XF test' does as expected. less
doesn't start but the one line is shown.

(For the record: I have never used any of that and have no intention
or need to. I just saw the thread, tried it myself and saw what I
posted.)

Thanks for the input. 

Oh, and this is all happening on a Debian (Testing) machine.


Reply via email to