On 9/19/24 2:42 AM, Robert Elz wrote:
Date: Thu, 19 Sep 2024 00:45:44 +0200 From: Steffen Nurpmeso <[email protected]> Message-ID: <20240918224544.aXWgbZu-@steffen%sdaoden.eu>| Woops. I did not know that, i always separate {} at the beginning | an the end, yet not (). '(' and ')' (parentheses) are operators, '{' and '}' (braces) are not, nor are '[' and ']' (brackets) - though I have never really understood bash's rules for '[[' and ']]' in this context.
`[[' and `]]' are reserved words, and `']]' is recognized as a reserved
word if it appears in a command position, with the provision that after a
`[[', what's between the brackets is a conditional command, with its own
grammar rules, so operators like `;' will cause a parse error.
This is similar to `{' and `}'.
--
``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/
OpenPGP_signature.asc
Description: OpenPGP digital signature
