Stopping Less from creating Log Files

Arthur Chance freebsd at qeng-ho.org
Mon Apr 11 18:24:15 UTC 2011


On 04/11/11 18:36, Jerry McAllister wrote:
> On Mon, Apr 11, 2011 at 11:36:37AM -0500, Martin McCormick wrote:
>
>> This is a minor problem but I use "more" to read Email messages
>> from nmh. If one forgets what screen one is in, it is possible
>> to start typing and create a log file of the message in which
>> ever mailbox directory one is reading out of.
>>
>> 	The man page for more is actually linked to less even
>> though FreeBSD has /usr/bin/more and less. I even tried in the
>> .mh_profile to call more with -Oo/dev/null but if you hit a key,
>> the "logfile" prompt appears and any subsequent key strokes are
>> part of the new file name.
>
> I think 'more' is just a link to 'less' anyway.  The binaries are
> the same according to dif and cmp.
>
> (not what you were asking, but...)

arthur at fileserver> ls -li /usr/bin/{more,less}
44019002 -r-xr-xr-x  2 root  wheel  139128 Feb 25 16:40 /usr/bin/less
44019002 -r-xr-xr-x  2 root  wheel  139128 Feb 25 16:40 /usr/bin/more

They're hard linked.

The OP should check out the section on environment variables in the man 
page. LESS and LESS_IS_MORE might help him.


More information about the freebsd-questions mailing list