Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!quagga!ctk1!oct1!mason From: mason@oct1.UUCP (David Mason) Newsgroups: comp.mail.elm Subject: Re: Default Pager (again) Message-ID: <1990Nov13.150124.1721@oct1.UUCP> Date: 13 Nov 90 15:01:24 GMT References: <15645@reed.UUCP> Reply-To: mason@oct1.UUCP (David Mason) Organization: Open Computer Technology Lines: 30 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. Alternately write wrappers for those programs that you want $PAGER to be set for. In this way you can probably control the settings and options more tightly, and the default environment will be preserved even if the application does not exit properly. An example of the former under ksh: elm () { unset PAGER /usr/bin/elm PAGER='pg -n' export PAGER } or alternately the latter under ksh: alias rn='PAGER=pg EDITOR=vi rn -T -h -S1' Probably easier that rewriting elm, and more generally applicable. -------------------- David | mason@oct1.UUCP (David Mason) | olsa99!oct1!mason@ddsw1.MCS.COM | !ddsw1!olsa99!oct1!mason