Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
AUTO_CD and directory names of options
- X-seq: zsh-workers 34988
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: AUTO_CD and directory names of options
- Date: Tue, 28 Apr 2015 14:36:56 -0400
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hey, someone on irc noticed something interesting about AUTO_CD.
If autocd attempts to cd into a directory that is a valid option for cd,
the option is interpreted like normal
and the directory doesn't change.
Having autocd perform ''cd -- -1'' not ''cd -1'' would fix it.
Src/exec.c seems to handle it, but i am exactly sure how.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author