Re: How functions are defined

2020-04-30 Thread Chet Ramey
On 4/27/20 10:03 PM, Dale R. Worley wrote: > So it seems the reserved rule is more accurately: > >Reserved words are words that have a special meaning to the >shell. The following words are recognized as reserved when >unquoted and either (1) where the first word of a sim

Re: How functions are defined

2020-04-28 Thread Robert Elz
Date:Mon, 27 Apr 2020 22:03:47 -0400 From:wor...@alum.mit.edu (Dale R. Worley) Message-ID: <87pnbsfjss@hobgoblin.ariadne.com> | While I was looking at the details of parsing function definitions, I | tripped on something I should have noticed long ago. In the

Re: How functions are defined

2020-04-28 Thread Andreas Schwab
On Apr 27 2020, Dale R. Worley wrote: > So it seems the reserved rule is more accurately: > >Reserved words are words that have a special meaning to the >shell. The following words are recognized as reserved when >unquoted and either (1) where the first word of a simple co

How functions are defined

2020-04-27 Thread Dale R. Worley
While I was looking at the details of parsing function definitions, I tripped on something I should have noticed long ago. In the function definition function foo() { command } the '{' should not be recognized as the start of a group, because it is not in one of the positions in