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

Re: bug with empty path



Peter Stephenson wrote:
> The lines:
>   path=()
> and
>   PATH=
> have different effects: the first produces an empty path array, the
> second a path with one blank element.  This turns up in the following:

I do not think it is a bug.  Of course other shells couldn't set an empty
path but zsh is better than that.  The path is really an array and the PATH
scalar is just a representation which has this inefficiency.

One may want to use a really empty path sometimes which is best achieved
with path=().

Zoltan



Messages sorted by: Reverse Date, Date, Thread, Author