From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10460 invoked from network); 28 May 2006 15:34:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.2 (2006-05-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.2 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 May 2006 15:34:23 -0000 Received: (qmail 94762 invoked from network); 28 May 2006 15:34:16 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 May 2006 15:34:15 -0000 Received: (qmail 26514 invoked by alias); 28 May 2006 15:34:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10325 Received: (qmail 26394 invoked from network); 28 May 2006 15:32:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 May 2006 15:32:06 -0000 Received: (qmail 92813 invoked from network); 28 May 2006 15:32:06 -0000 Received: from feh.name (HELO mail.feh.name) (217.160.108.109) by a.mx.sunsite.dk with SMTP; 28 May 2006 15:32:06 -0000 Received: by mail.feh.name (Postfix, from userid 2342) id 921B8CCA39; Sun, 28 May 2006 17:32:04 +0200 (CEST) Date: Sun, 28 May 2006 17:32:04 +0200 From: Julius Plenz To: zsh-users@sunsite.dk Subject: Double Colon in $PATH Message-ID: <20060528153204.GG2700@plenz.com> Mail-Followup-To: zsh-users@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: 0x186DCA0D X-URL: http://www.plenz.com/ X-Editor: Vim 7.0 - set ai et ts=4 tw=70 comments=b:#,:%,fb:-,n:>,n:) nosm nonu User-Agent: Mutt/1.5.11+cvs20060403 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