Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Amusing/unamusing dumb scripting mistake to make
- X-seq: zsh-users 9009
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: Amusing/unamusing dumb scripting mistake to make
- Date: Thu, 30 Jun 2005 14:31:14 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <hgc8c1pr0q9fl397ie1q85dbb12mmaiiuh@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <hgc8c1pr0q9fl397ie1q85dbb12mmaiiuh@xxxxxxx>
In the last episode (Jun 30), zzapper said:
> I was hacking a simple script, which each time it ran made my Cygwin
> zsh shell useless.
>
> Turned out I'd named a temporary variable "path"
> doh!
>
> But how come my script exported path? Is that default in zsh?
Not as such, but $path (the array) is tied to $PATH (the ":"-delimited
string), which does get exported, so the net effect is that changes do
get passed to children.
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author