Details

[Home]

Issue of the Standard # S0701

Brief

Inconsistency between formal definition of list in Shell Language Grammar and its informal description

Detailed Description

The informal description of a list in section 2.9.3 Lists reads: "A list is a sequence of one or more AND-OR lists separated by the operators ';' and '&' and optionally terminated by ';', '&', or <newline>".

The formal definition of a list is as follows:

list             : list separator_op and_or
                 |                   and_or
                 ;
...
separator_op     : '&'
                 | ';'
                 ;
This definition corresponds to the first part of the description only: "A list is a sequence of one or more AND-OR lists separated by the operators ';' and '&'".

Problem location(s) in the standard

The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition (SUS 3.0), Shell & Utilities, Shell Command Language, 2.10.2 Shell Grammar Rules.

Accepted

POSIX aardvark

[Home]