Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Filename generation: instruct zsh not to follow symbolic links?
- X-seq: zsh-users 30724
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: Filename generation: instruct zsh not to follow symbolic links?
- Date: Fri, 17 Jul 2026 11:23:40 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FbNFjOD5nE+mYW58SANA03Uu6//g13VnSOgrP436spc=; fh=BXAsFvYqpksFDUUSB2Qcj3XhjNowZpj+wVNj7DVxFUU=; b=Qco78UBYKXt1BBJJHPgEh9r9Px8GbAgM+yXFQFZUqOAfUnGnLW93wNkPnXGqMl+bww gLX3DWTBRkx4JAVj2JtoucjdC+rOSur5vl4NTCcAjKenFYwQxRQuObdEVY3S7Mcfk26F 8GDghWh66dimuPGyMEnNj5sW3Mg8BWGmRtpV+DVUqtZCfEbN7OMF/Mkef8MpP/ANycyP 0eqgDYAqURS1CYfb9fBPj4lKqnMb951/GepbWyJY8q0iG9YbKdf72dID1+6Pz2IQnnDU 05aLGcDLAkZvQh/UWY+72gbEp5R8s2sm57u7whZjr1JeWcHBSd9u4CWLy4aFNbIwRqFj xywg==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1784312632; cv=none; d=google.com; s=arc-20260327; b=KTAqWUBJgrcU7YWIrO9btkE5DGCogapP6ucWT52gRCyL5KEh8Ju44EBQ2ZsH8Z/adV XkQuyD1If+MXAKdypJrVU+HdTMZ/WHS8VR+915FiM01zDBKvM8dxXnYYuWeJE3Mcl3ru OiVkxbmvHCGVRWPDH/SouMkACU/3uYPuxGcT3laEY07QjD9TVtDY4Bq8Bo/CGBBUxdEY wo8CRIF6LM2Pb4JTs0E+2ZBU9IU/2TLnsEEeiHeirRICJlimnDjzINNMWtnYGlUbMi+Z xpmqLf9WK+5bKB9Ce1+BgtbNfQKWx03mgv2Nslh+iphq6avrYMrNdV1qkys5Vz53tUBM /9gA==
- Archived-at: <https://zsh.org/users/30724>
- In-reply-to: <CAHYJk3S_s9kNSgqxas7Cqh9Cf26uhkXA3aZ8omeBbMi2dmp-EQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <20260715231750.GB75013@qaa.vinc17.org> <CAHYJk3Trh7f1w41Dg5oWKGYPquFhtq6CDLO9tVJwzBQe2uJqcA@mail.gmail.com> <20260716092312.GA2955@cventin.lip.ens-lyon.fr> <CAHYJk3RjJOFvd9KYsjBgYPbkOsyo4BG30Jsy9uQ2U_-v-3h0UQ@mail.gmail.com> <CAH+w=7YxNdDt6mAcUMc7cfgE0PatVU3vmB6h+_Yu6oSZ3XU5+w@mail.gmail.com> <CAH+w=7YuuknewbozmkV1n9HfbuGC=vm=60998a+dtNfZkx4AKg@mail.gmail.com> <20260716230822.GC229319@qaa.vinc17.org> <20260717094918.GA306538@qaa.vinc17.org> <CAH+w=7bSaxi17Fx93FoMNVLDoOg9Ft36JfwAEjjg4ekKf+Q_+A@mail.gmail.com> <CAHYJk3S_s9kNSgqxas7Cqh9Cf26uhkXA3aZ8omeBbMi2dmp-EQ@mail.gmail.com>
On Fri, Jul 17, 2026 at 10:18 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> On Fri, Jul 17, 2026 at 6:33 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > On Fri, Jul 17, 2026 at 3:50 AM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> > >
> > > while in <dir>/foo, I would want
> > > to ignore only the cases where <dir> is a symbolic link.
> >
> > nosym() { [[ $REPLY:a:h == $REPLY:A:h ]] || typeset -g reply=() }
>
> This might need to be :h:a and :h:A respectively, in case the foo
> symlink target has multiple components?
Hm, I don't think :A would resolve links in the final component of the
path, only in <dir> along the way? Can you provide a counter-example?
Or am I not understanding the concern?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author