[net.notes] PAGER variable problem

joe@smu.UUCP (01/31/85)

Notes looks at the environment variable PAGER to determine
if you want to use a different program than /usr/usb/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?

Joe Ramey, Southern Methodist University
UUCP: convex!smu!joe
CSNET: joe@smu

dave@lsuc.UUCP (David Sherman) (02/04/85)

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

tower@inmet.UUCP (02/07/85)

 >	***** 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