Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxb!mhuxr!ulysses!allegra!mit-eddie!godot!ima!inmet!tower
From: tower@inmet.UUCP
Newsgroups: net.notes
Subject: Re: Re: PAGER variable problem
Message-ID: <1943@inmet.UUCP>
Date: Thu, 7-Feb-85 01:23:44 EST
Article-I.D.: inmet.1943
Posted: Thu Feb  7 01:23:44 1985
Date-Received: Fri, 8-Feb-85 01:24:46 EST
Lines: 32
Nf-ID: #R:lsuc:-34900:inmet:7400004:000:1231
Nf-From: inmet!tower    Feb  5 17:14:00 1985


 >	***** inmet:net.notes / lsuc!dave /  9:39 pm  Feb  4, 1985
 >	In article <26000001@smu.UUCP> joe@smu.UUCP writes:
 >	||Notes looks at the environment variable PAGER to determine
 >	||if you want to use a different program than /usr/ucb/more to look at
 >	||the help page.  The problem is there is no way to pass parameters to
 >	||the program. (e.g., I would like to run my own pager program, say
 >	||page, invoking it as page -s).  Has anyone fixed this?
 >	
 >	Well, it's a kludge, but you can create your own shell file which
 >	simply calls page -s, and make the shell file your $PAGER.
 >	Dave Sherman
 >	{utzoo pesnta nrcaero utcs}!lsuc!dave
 >	{allegra decvax ihnp4 linus}!utcsrgv!lsuc!dave
 >	
Non-kludge:

more on 4.1BSD looks at the environment variable MORE to decide
what parameters to invoke itself with. See the man page.

	e.g. (from my .login for my login c-shell)
setenv MORE	-sl
setenv PAGER	'/usr/ucb/more'

I suspect this is true on 4.2BSD and 2.9BSD systems as well.

"Oh, the nested webs we weave..."

-len tower	    UUCP:     {ihnp4,harpo}!inmet!tower
 Intermetrics, Inc. INTERNET: ima!inmet!tower@CCA-UNIX.ARPA
		    USPS:     733 Concord Ave., Cambridge, MA  02138, USA
		    PHONE:    (617) 661-1840