zsh-users
 help / color / mirror / code / Atom feed
From: Francisco Borges <f.borges@rug.nl>
To: Zsh User <zsh-users@sunsite.dk>
Subject: Re: cd && cdable_vars (bug?)
Date: Wed, 29 Mar 2006 21:40:52 +0200	[thread overview]
Message-ID: <20060329194052.GA25227@let.rug.nl> (raw)
In-Reply-To: <060329100901.ZM5908@torch.brasslantern.com>

» On Wed, Mar 29, 2006 at 10:09AM -0800, Bart Schaefer wrote:

> }    Which AFAIK should not happen, since there is a directory "5", so
> }    there should be no cdablevar lookup, right?
>
> That's probably true, but it may depend on your other completion settings.
> Completion usually errs on the side of giving you too many choices, when
> there is ambiguity.

No, there is no ambiguity (cdablevars should only work when there is no
dir with that name) and, in any case, these choices are spurious in the
sense that, if accepted and executed, they fail (just like cd <int>
won't expand to cd ~<int>).

This will happen with clean "completion styles"

zsh -f

autoload -U compinit
compinit -D -C

setopt cdable_vars

mkdir -p test_cd
cd test_cd

dirstack=(/etc /usr /var)

mkdir -p 2/a 2/b 2/c

loki% cd 2/[TAB]
a/           c/           games/       lib/         lost+found/  share/
b/           dict@        include/     lib64/       openwin@     src/

loki% cd 2/bin
cd: no such file or directory: 2/bin

Cheers,
Francisco


      reply	other threads:[~2006-03-29 19:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-29 11:46 Francisco Borges
2006-03-29 18:09 ` Bart Schaefer
2006-03-29 19:40   ` Francisco Borges [this message]

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=20060329194052.GA25227@let.rug.nl \
    --to=f.borges@rug.nl \
    --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).