From: Bart Schaefer <schaefer@brasslantern.com> To: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org> Cc: Mikael Magnusson <mikachu@gmail.com>, Zsh Users <zsh-users@zsh.org> Subject: Re: Safety guards for typos Date: Sun, 23 Jan 2022 18:51:31 -0800 [thread overview] Message-ID: <CAH+w=7ZLi4NLwBWT8Lrm9bjn02bcAGrnDdQqZj-FHr6+ZjoqSw@mail.gmail.com> (raw) In-Reply-To: <Ye4K2uGS4tY9kI+R@fullerene.field.pennock-tech.net> On Sun, Jan 23, 2022 at 6:11 PM Phil Pennock <zsh-workers+phil.pennock@spodhuis.org> wrote: > > I tried it and the protection doesn't appear to fire. Is it possible > that the examination of multiple words before the function definition > happens prior to globbing expansion? Yes, that's it. It happens when "()" is tokenized. > % *() { echo wibble } How often would you find a glob as the first word in a command line, though?
next prev parent reply other threads:[~2022-01-24 2:52 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-24 0:17 Phil Pennock 2022-01-24 1:46 ` Mikael Magnusson 2022-01-24 2:01 ` Phil Pennock 2022-01-24 2:11 ` Phil Pennock 2022-01-24 2:51 ` Bart Schaefer [this message] 2022-01-24 5:57 ` Daniel Shahaf
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAH+w=7ZLi4NLwBWT8Lrm9bjn02bcAGrnDdQqZj-FHr6+ZjoqSw@mail.gmail.com' \ --to=schaefer@brasslantern.com \ --cc=mikachu@gmail.com \ --cc=zsh-users@zsh.org \ --cc=zsh-workers+phil.pennock@spodhuis.org \ --subject='Re: Safety guards for typos' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).