From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23224 invoked by alias); 11 Jan 2016 11:30:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21146 Received: (qmail 25695 invoked from network); 11 Jan 2016 11:30:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-IBM-Helo: d06dlp03.portsmouth.uk.ibm.com X-IBM-MailFrom: vogt@linux.vnet.ibm.com X-IBM-RcptTo: zsh-users@zsh.org Date: Mon, 11 Jan 2016 12:20:26 +0100 From: Dominik Vogt To: Zsh Users Subject: cd "" foo bug? Message-ID: <20160111112026.GA14816@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: Zsh Users MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16011111-0033-0000-0000-0000055A24B3 cd with two arguments works fine if the second argument is an empty string, but not if the first argument is an empty string. Shouldn't it try all possible positions for the "" instead of just the first one? $ cd ~/gcc/build/gcc $ builtin cd build "" ~/gcc/gcc $ builtin cd "" build cd: no such file or directory: build/home/user/gcc/gcc $ zsh --version zsh 5.0.2 (s390x-ibm-linux-gnu) Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany