Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cd "" foo bug?
On Fri, 15 Jan 2016 10:45:26 +0100
Dominik Vogt <vogt@xxxxxxxxxxxxxxxxxx> wrote:
> > cd -- $dir
>
> How is this supposed to work? The manual does not mention "--":
You're correct that cd is funny with options, no doubt partly because of
-<NUM>, so you can forget the "--". Yes, I think directories beginning
with "-" are intrinsically somewhat inconsistently handled in the
builtin (and presumably always have been).
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author