[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on $IFS related differences (Was: Question on $@ vs $@$@)
From: |
Chet Ramey |
Subject: |
Re: Question on $IFS related differences (Was: Question on $@ vs $@$@) |
Date: |
Thu, 19 Sep 2024 15:04:16 -0400 |
User-agent: |
Mozilla Thunderbird |
On 9/19/24 2:42 AM, Robert Elz wrote:
Date: Thu, 19 Sep 2024 00:45:44 +0200
From: Steffen Nurpmeso <steffen@sdaoden.eu>
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 chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
- Re: Question on $IFS related differences (Was: Question on $@ vs $@$@), (continued)
- Re: Question on $IFS related differences (Was: Question on $@ vs $@$@), Oğuz, 2024/09/18
- Re: Question on $IFS related differences (Was: Question on $@ vs $@$@), Greg Wooledge, 2024/09/18
- Re: Question on $IFS related differences (Was: Question on $@ vs $@$@), Chet Ramey, 2024/09/18
- Re: Question on $IFS related differences (Was: Question on $@ vs $@$@), Robert Elz, 2024/09/18
- Re: Question on $IFS related differences (Was: Question on $@ vs $@$@), Steffen Nurpmeso, 2024/09/18
- Re: Question on $IFS related differences (Was: Question on $@ vs $@$@), Robert Elz, 2024/09/18