Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 7b only applies to words before the first WORD. Here, the first WORD is echo. The question would still stand for $(foo=bar; echo echo) bar Commented Aug 5, 2016 at 9:04
  • @StéphaneChazelas I respectfully disagree - from the grammar, clearly, 7b applies to words after the first one (there is nothing before the first one, by definition). Commented Aug 5, 2016 at 9:07
  • That's about Assignment preceding command name. Commented Aug 5, 2016 at 9:08
  • @StéphaneChazelas yes I know :) that label is misleading and should be disregarded - note that this rule applies, from the productions for cmd_word and cmd_name to command name itself, and in the rule itself, also talks about command names. Commented Aug 5, 2016 at 9:11
  • 2
    I agree it's unclear. I would suggest you ask those questions on the austin group mailing list. (that list relied on gmane for the archives, I'm not sure where to find them now that gmane web interface is gone). Commented Aug 5, 2016 at 9:40