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

Re: trivial question



> On 06/12/2022 10:18 Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
> On Tue, Dec 6, 2022 at 5:30 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > The cases where it is going to perform globbing are more universal
> > than those where it is not.
> 
> I know that filename generation is performed in these places:
> 
> - On words of a simple command.
> - Within array initializers.
> - Within for loop initializers.
> 
> You can also enable it in some places with (#q). Are there any other
> places where filename generation takes place? I cannot find this in
> the docs.

There's the special case of the GLOB_ASSIGN option where all
assignments, not just arrays, undergo globbing.  That's for
compatibility with early versions of zsh, otherwise it's very
confusing.

pws




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