Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Amusing/unamusing dumb scripting mistake to make



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