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 simple command
> could be (see SHELL GRAMMAR below), (2) the third word of a case,
> for, or select command, the (3) first word of the body of a function
> definition, or (4) after a semicolon or newline:
>
>
> ... Looking at this again, I think (1) and (3) can be replaced by "the> first
> word of a command (see SHELL GRAMMAR below)", which helps.
I'll rework it to use "the first word of a command" with the two execptions
(third word of case/select, third word of for). This is pretty close to
what POSIX has. Thanks for the report.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/