zsh-users
 help / color / mirror / code / Atom feed
From: Julius Plenz <julius@plenz.com>
To: zsh-users@sunsite.dk
Subject: Double Colon in $PATH
Date: Sun, 28 May 2006 17:32:04 +0200	[thread overview]
Message-ID: <20060528153204.GG2700@plenz.com> (raw)

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


             reply	other threads:[~2006-05-28 15:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-28 15:32 Julius Plenz [this message]
2006-05-28 15:56 ` Erik Trulsson
2006-05-28 18:34   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060528153204.GG2700@plenz.com \
    --to=julius@plenz.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).