From owner-freebsd-questions@FreeBSD.ORG Mon Apr 11 21:33:53 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CBF2106566B for ; Mon, 11 Apr 2011 21:33:53 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.53]) by mx1.freebsd.org (Postfix) with ESMTP id 688568FC1A for ; Mon, 11 Apr 2011 21:33:53 +0000 (UTC) Received: (qmail 24445 invoked from network); 11 Apr 2011 21:33:52 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 Apr 2011 21:33:52 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 364F95082A; Mon, 11 Apr 2011 17:33:51 -0400 (EDT) From: Lowell Gilbert To: Martin McCormick References: <201104111636.p3BGab4r016267@x.it.okstate.edu> Date: Mon, 11 Apr 2011 17:33:51 -0400 In-Reply-To: <201104111636.p3BGab4r016267@x.it.okstate.edu> (Martin McCormick's message of "Mon, 11 Apr 2011 11:36:37 -0500") Message-ID: <44tye4jww0.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Stopping Less from creating Log Files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2011 21:33:53 -0000 Martin McCormick writes: > 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. > > This really is only a minor nuisance because it creates > junk files that then have to be removed from the directory. So, > if there is a way to make more or less not write anything, it > would be more or less appreciated. The "secure" mode disables log files, but it also changes several other behaviours, so you may not find it to be an improvement. The code supports changing those "secure" features separately, but only by editing the source; if you go that way, it will probably be much easier to use the ports version of the program instead of the base system's.