Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!tuvie!iiasa!wnp From: wnp@iiasa.ac.at (wolf paul) Newsgroups: comp.mail.elm Subject: Re: Default Pager (again) Message-ID: <963@iiasa.UUCP> Date: 20 Nov 90 16:41:14 GMT References: <15645@reed.UUCP> <1990Nov13.150124.1721@oct1.UUCP> Sender: news@iiasa.AT Reply-To: wnp%iiasa@relay.eu.net (wolf paul) Organization: International Institute for Applied Systems Analysis, Laxenburg, Austria Lines: 24 In article <1990Nov13.150124.1721@oct1.UUCP> mason@oct1.UUCP (David Mason) writes: )In article <15645@reed.UUCP> chaffee@reed.UUCP (Alex Chaffee) writes: )>I want new users to use the builtin pager, but )>all users have the $PAGER variable defined in their .cshrc file (for use by )>rn etc.). Is there any way to have elm ignore the $PAGER environment )>variable in the absence of an elmrc file, and use the #define instead? ) )One could easily write a small wrapper for elm which unsets any environ- )ment variables, then resets them aftwards. ... ) )An example of the former under ksh: ) (using a shell function to unset PAGER, run rn, re-set PAGER) Actually, using a shell script which sets PAGER to whatever (or unsets it, for that matter) and then execs the real elm will do the trick with no risks if elm terminates abnormally. And of course it works for all other environment variables, and other programs, as well. -- W.N.Paul, Int. Institute f. Applied Systems Analysis, A-2361 Laxenburg--Austria PHONE: +43-2236-71521-465 INTERNET: wnp%iiasa@relay.eu.net FAX: +43-2236-71313 UUCP: uunet!iiasa!wnp HOME: +43-2236-618514 BITNET: tuvie!iiasa!wnp@awiuni01.BITNET