From owner-freebsd-stable@FreeBSD.ORG Wed Nov 15 10:37:35 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBD6416A412; Wed, 15 Nov 2006 10:37:35 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E05643D80; Wed, 15 Nov 2006 10:37:33 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (dqfmhm@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id kAFAbRW2088241; Wed, 15 Nov 2006 11:37:32 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id kAFAbQ6L088240; Wed, 15 Nov 2006 11:37:26 +0100 (CET) (envelope-from olli) Date: Wed, 15 Nov 2006 11:37:26 +0100 (CET) Message-Id: <200611151037.kAFAbQ6L088240@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, koitsu@FreeBSD.ORG, pj@smo.de, smithi@nimnet.asn.au In-Reply-To: X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 15 Nov 2006 11:37:32 +0100 (CET) Cc: Subject: Re: Problems with man and less/more X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, koitsu@FreeBSD.ORG, pj@smo.de, smithi@nimnet.asn.au List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 10:37:35 -0000 Ian Smith wrote: > Jeremy Chadwick wrote: > > Oliver Fromme wrote: > > > Just set $PAGER appropriately. By the way, the default > > > (if not set) is "more -s", which is the same as "less -s". > > > Therefore, piping output from man(1) through less(1) > > > doesn't really make sense. > > > > Maybe this should be done by the default in /etc/profile and > > /etc/csh.cshrc for people who don't override it? Those people will get the default behaviour already, so I don't think it's necessary to set $PAGER to anything. In fact, it might be confusing to do so. > more and less don't behave quite the same though; Right, less(1) enters a compatibility mode if called as "more". Sorry, I forgot about that because I have an alias more=less for ages. :-) > I always set $PAGER to > less explicitly in ~/.cshrc (albeit with some extra options) because as > more, getting to the bottom of a file quits, where less requires 'q' to > exit - handy if, say, running '!man something' from inside less .. Beside the alias more=less, I have the following environment variables set in my ~/.zshrc: LESSCHARSET=latin1 LESS=-Meiqa#8 PAGER=less Among other things, those options will make less(1) quit automatically when it hits the bottom of a file for the _second_ time in a row, which is very convenient, and it makes the prompt line more verbose (display file name, line numbers and percentage). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible." -- John William Chambless