zsh-users
 help / color / mirror / code / Atom feed
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: cd "" foo bug?
Date: Mon, 11 Jan 2016 12:20:26 +0100	[thread overview]
Message-ID: <20160111112026.GA14816@linux.vnet.ibm.com> (raw)

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


             reply	other threads:[~2016-01-11 11:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-11 11:20 Dominik Vogt [this message]
2016-01-11 11:58 ` Peter Stephenson
2016-01-15  9:45   ` Dominik Vogt
2016-01-15 10:41     ` Peter Stephenson
2016-01-15 11:29       ` Dominik Vogt
2016-01-15 19: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=20160111112026.GA14816@linux.vnet.ibm.com \
    --to=vogt@linux.vnet.ibm.com \
    --cc=zsh-users@zsh.org \
    /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).