Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Double Colon in $PATH
- X-seq: zsh-users 10325
- From: Julius Plenz <julius@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Double Colon in $PATH
- Date: Sun, 28 May 2006 17:32:04 +0200
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi!
I recently discovered (rather by accident, though) that a double-colon
in the PATH variable is treated by Zsh (Ash and Bash, too) as if there was
".", the current directory, in the PATH variable.
Example:
prompt> echo $PATH && pwd
::
/bin
prompt> ls
[directory listing of /bin]
Now this is really confusing me. I've already asked several people,
and neither one of them could tell my why Zsh (and other shells) do
this. I'd appreciate it very much if any of you guys could give me a
hint or explain this behaviour to me.
Thank you!
Julius
Messages sorted by:
Reverse Date,
Date,
Thread,
Author