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

Re: trivial question



On Mon, Dec 5, 2022 at 6:29 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> I just need to know when zsh is
> going to attempt globbing and keep on the watch for that.

The cases where it is going to perform globbing are more universal
than those where it is not.

This is back to the DOS vs. (unixy) shell thing.  The command name
generally doesn't matter.  "echo" is not what's deciding whether the
arguments that follow are glob patterns; the shell itself determines
that before it even knows what "echo" will do, and that's going to be
the case for every command.

The only places where that won't be true are for some things that are
actual syntax tokens rather than command names.

>  * ? [] (but only paired!) what else?

If you're asking what else are glob characters, you should probably
attempt to understand the corresponding manual section.




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