Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [bug] :P modifier and symlink loops
- X-seq: zsh-workers 53510
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>, Stephane Chazelas <stephane.chazelas@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [bug] :P modifier and symlink loops
- Date: Thu, 24 Apr 2025 13:17:39 -0700
- Archived-at: <https://zsh.org/workers/53510>
- In-reply-to: <CAHYJk3SAhHqQ8XkZ3wKd8Cm0FrxFXHTfjYKXTGH_mtUpkzNcCg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20200111170047.ifjsdd5lfeksqyaa@chaz.gmail.com> <20200201175740.lma5dxgwufk6fpeg@chazelas.org> <20200202081021.7c8aab22@tarpaulin.shahaf.local2> <20200321195048.7c49a291@tarpaulin.shahaf.local2> <CAHYJk3Q+d+xsL23kXvzOqztA0bfg0HNvwn4y2EwmFH+aYX_=QQ@mail.gmail.com> <CAHYJk3SAhHqQ8XkZ3wKd8Cm0FrxFXHTfjYKXTGH_mtUpkzNcCg@mail.gmail.com>
On Thu, Apr 24, 2025 at 11:36 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> >
> > Patch six in this series breaks whence -s, I guess it is not a very
> > common usecase since nobody complained until now.
> > Expected:
> > % Src/zsh -c 'which -s git'
> > /usr/bin/git
> > Actual:
> > % Src/zsh -c 'which -s git'
> > /usr/bin/git -> /usr/bin/git
> >
> > Reverting the patch seems to resolve the issue, but I'm not sure what
> > the intent of the change was in the first place
Eliminate excess work done by xsymlinks, I think.
> > I know that Daniel isn't very active anymore, but if anyone else has
> > any thoughts?
We could resolve the issue without adding back the xsymlnks call if we
could tell that chrealpath has returned the exact same path it was
given.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author