Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: environment settings
- X-seq: zsh-workers 25205
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxx, Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: environment settings
- Date: Tue, 17 Jun 2008 21:32:29 +0100
- In-reply-to: <20080617195007.GV10734@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, Mikael Magnusson <mikachu@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080617093859.GB5016@xxxxxxxxxxxxxxx> <20080617104126.GC10734@xxxxxxxxxxxxxxxxxxx> <20080617125834.GI5016@xxxxxxxxxxxxxxx> <20080617131154.GM10734@xxxxxxxxxxxxxxxxxxx> <20080617132611.GL5016@xxxxxxxxxxxxxxx> <237967ef0806170628m56b80d3anaf252e68ad6c497d@xxxxxxxxxxxxxx> <20080617142557.GO5016@xxxxxxxxxxxxxxx> <20080617155429.GT10734@xxxxxxxxxxxxxxxxxxx> <20080617160009.GS5016@xxxxxxxxxxxxxxx> <20080617195007.GV10734@xxxxxxxxxxxxxxxxxxx>
On Tue, Jun 17, 2008 at 09:50:07PM +0200, Vincent Lefevre wrote:
> On 2008-06-17 17:00:09 +0100, Stephane Chazelas wrote:
> > Do you mean that a zsh script should expect that someone might
> > have put typeset -U path in its ~/.zshenv?
>
> Yes. If it doesn't like it, it can still do a typeset +U path.
[...]
And while we're at it, it can also do an "unfunction echo" and
"unalias echo" because someone might have redefined "echo" in
the ~/.zshenv to behave POSIXly. But first, it may want to do a
\comm"a"n\d un\function unfunction because you never know these
days what people may want to put in ~/.zshenv.
Let's be serious please. Or let's do as for csh, where one must
add the -f to the shebang line to avoid this kind of problem.
~/.zshenv can be a useful tool but it must be used with care.
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author