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

Vincent Lefevre <[email protected]> Fri, 17 Jul 2026 01:08:22 +0200
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <[email protected]>
On 2026-07-16 12:17:55 -0700, Bart Schaefer wrote:
> nosym() { [[ $REPLY:a == $REPLY:A ]] || reply=() }

Thanks. I suppose that it should actually be

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

to avoid warnings with WARN_CREATE_GLOBAL.

-- 
Vincent Lefèvre <[email protected]> - 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)