Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug with empty path
- X-seq: zsh-workers 2536
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: pws@xxxxxx (Peter Stephenson)
- Subject: Re: bug with empty path
- Date: Wed, 4 Dec 1996 21:59:41 +0100 (MET)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199612040900.KAA20985@xxxxxxxxxx> from Peter Stephenson at "Dec 4, 96 10:00:21 am"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
Peter Stephenson wrote:
> I see the point, but do you really want to try and explain this to the
> average user? ``The PATH is sometimes empty, and sometimes really empty,
> but only if you set it as an array; if it looks empty, it may be empty
> or really empty; if it's empty but not really empty it pretends to be
> set to the current directory...''
I tell the user that path is an array and the real thing is the path
variable. PATH just tries to represent is as a scalar for compatibility
reasons.
> Still, there's some confusion in having both $path and $PATH which is
> probably unavoidable, so I can live with it.
When zsh is called as sh, there is no path just PATH.
And if we modify the behaviour of path we should also modify the other
variables: mailpath, fpath, module_path or any other array/scalar pairs.
But that would just remove functionality with cost of addig extra code.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author