Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Filename generation: instruct zsh not to follow symbolic links?



On 2026-07-17 01:08:22 +0200, Vincent Lefevre wrote:
> Thanks. I suppose that it should actually be
> 
>   nosym() { [[ $REPLY == $REPLY:A ]] || typeset -g reply=() }
> 
> to avoid warnings with WARN_CREATE_GLOBAL.

Oops, I copy-pasted the wrong one. This should be

  nosym() { [[ $REPLY:a == $REPLY:A ]] || typeset -g reply=() }

But anyway, this doesn't really work: */foo(+nosym) also ignores the
cases where "foo" is a symbolic link, while in <dir>/foo, I would want
to ignore only the cases where <dir> is a symbolic link.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)




Messages sorted by: Reverse Date, Date, Thread, Author