Paul Hartman <paul.hartman+gen...@gmail.com> writes: [...]
>>> (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? > > It is caused by "alternate screen" handling in your terminal emulator. > You can disable alternate screen in your terminal (if possible), or > remove the smcup and rmcup directives from your termcap file. > > As a test, you can try this: > > export TERM=vt220 > less -F test > > it should display the one line file. > > Or you can use the -X option of less like Willie said which inhibits > less from using the alternate screen. OK, thanks for the input... good information. I'm not really likely to use that command much or ever... but good to know. I guess you see the same behavior I reported? That is, that a one line file is not displayed with `less -F file' ?