> Thanks Janis,
>
> I don't find this particular requirement in the The Open Group Base
> Specifications Issue 7, IEEE Std 1003.1-2008.
>
> These parts seem relevant to the question:
>
>
> The if Conditional Construct
> [...]
This is not the right place. This is a tokenization issue.
I am looking at Issue 6 of The Single Unix Spec online:
I think you want:
2.3 Token Recognition
I believe that rule 6 applies to these cases, assuming that ; is an operator:
6. If the current character is not quoted and can be used as the first
character of a new operator, the current token (if any) shall be
delimited. The current character shall be used as the beginning of the
next (operator) token.
I.e. the ``current token shall be delimited'' means that we finished
recognizing the token, and the character we are looking at now
begins a new token.
Thus if you have a bunch of characters which constitute a word (accumulated by
rule 9), and then a semicolon occurs, that word is delimiated.
> A list is a sequence of one or more AND-OR lists separated by the
> operators ';' and '&' and optionally terminated by ';' , '&' , or <newline>.
^^^^^^^^^^^^^
There you go. The semicolon is an operator, and so by token recognition rule 6
it starts a new token.