Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] expand '..n' to equivalent number of '..' segments in fixdir
- X-seq: zsh-workers 45804
- From: "Dian M Fay" <dian.m.fay@xxxxxxxxx>
- To: "Roman Perepelitsa" <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: [PATCH] expand '..n' to equivalent number of '..' segments in fixdir
- Date: Sun, 10 May 2020 01:28:27 -0400
- Cc: "Zsh hackers list" <zsh-workers@xxxxxxx>
- In-reply-to: <CAN=4vMr_8j03P2oY0+9SLgBnMWMtGtrnUag7fte =18VnvUtRKg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Original: On Sun, May 10, 2020 at 6:36 AM Dian M Fay <dian.m.fay@xxxxxxxxx> wrote: > > dian@lamia ~/work/zsh cd ..2 > dian@lamia ~ cd ..123 > dian@lamia / `..2` is a valid directory name. So it's a breaking change. ~% mkdir ..2 ~% cd ..2 ~/..2% Roman.
- Originaldate: Sun May 10, 2020 at 6:43 AM
- Originalfrom: "Roman Perepelitsa" <roman.perepelitsa@xxxxxxxxx>
Of course. Actually encountering a directory named like that does seem
unlikely, but unlikely probably doesn't cut it. It could stat beforehand
but then the ..n behavior becomes less consistent.
Would making this an option ('BACKTRACK_N' or something) be appropriate?
On Sun May 10, 2020 at 6:43 AM, Roman Perepelitsa wrote:
> On Sun, May 10, 2020 at 6:36 AM Dian M Fay <dian.m.fay@xxxxxxxxx> wrote:
> >
> > dian@lamia ~/work/zsh cd ..2
> > dian@lamia ~ cd ..123
> > dian@lamia /
>
>
> `..2` is a valid directory name. So it's a breaking change.
>
>
> ~% mkdir ..2
> ~% cd ..2
> ~/..2%
>
>
> Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author