Zsh Mailing List Archive
Messages sorted by:
Re: zsh-4.0.1-pre4 : manpath and MANPATH
- X-seq: zsh-workers 14404
- From: Richard Curnow <Richard.Curnow@xxxxxx>
- To: pws@xxxxxxx
- Subject: Re: zsh-4.0.1-pre4 : manpath and MANPATH
- Date: Mon, 21 May 2001 09:24:21 +0100
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <Tc0a88d01539911a062@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>; from pws@xxxxxxx on Fri, May 18, 2001 at 04:05:11PM +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Recieved: from Richard.Curnow@xxxxxx by popov with local (Exim 3.03 #5) id 151kzF-0004I6-00; Mon, 21 May 2001 09:24:21 +0100
- References: <20010518150021.F6141@xxxxxxxxxxxxxxxxxxxx> <Tc0a88d01539911a062@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Fri, May 18, 2001 at 04:05:11PM +0100, pws@xxxxxxx wrote:
> Richard Curnow wrote:
> > zshparam.1 says that setting manpath will change MANPATH and vice versa.
> > If I change MANPATH, I don't see manpath getting changed.
> You haven't unset that in your .zshenv too, have you? In that case it will
> (temporarily) lose its special connection to $manpath. This seems to be a
> bug, because it happens even if $manpath is never unset.
Yes, in fact that was the case.
OK, next question ... what is a good way to delete all the environment
variables apart from 'special' ones? Currently I have this in my .zshenv (on
unset `/usr/ucb/printenv | /bin/sed -e 's/=.*$//;' | egrep -v '^(PATH|HOME|HOST|LOGNAME|MACHTYPE|TERM|TZ|USER|_|PWD|DISPLAY|CLEARCASE_ROOT|SHLVL)'`
(Obviously I now need to add MANPATH to the saved list. :-))
My intention is that if I re-source .zshenv, I get the environment reset to
effectively what I would have after logging in. Maybe just making sure all the
'special' variables like SHLVL, MANPATH etc are included would be enough, as
the method was doing what I wanted under v3.1.5.
Thanks for your help so far.
Richard Curnow---by day : SuperH Core Architecture at STMicroelectronics
and by night >>---richard.curnow@xxxxxxxxxxxx://go.to/richard.curnow/---
Messages sorted by: