[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash tries to parse comsub in quoted PE pattern
From: |
Chet Ramey |
Subject: |
Re: bash tries to parse comsub in quoted PE pattern |
Date: |
Wed, 18 Oct 2023 10:00:29 -0400 |
User-agent: |
Mozilla Thunderbird |
On 10/18/23 9:39 AM, Zachary Santer wrote:
I guess I still want to hear about "${#@}" and $[ ]. Sorry about bringing
them up in relation to something that *is* documented.
The former is unspecified, but seems reasonable: $@ expands the positional
parameters to a set of words, and the # counts them. Behavior varies across
shells, but no shell flags it as an error.
$[...] still works as an equivalent to $((...)), since it was the POSIX
way to perform arithmetic expansion before $((...)).
--
``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/
- bash tries to parse comsub in quoted PE pattern, Emanuele Torre, 2023/10/13
- Re: bash tries to parse comsub in quoted PE pattern, Chet Ramey, 2023/10/18
- Re: bash tries to parse comsub in quoted PE pattern, Emanuele Torre, 2023/10/18
- Re: bash tries to parse comsub in quoted PE pattern, Chet Ramey, 2023/10/18
- Re: bash tries to parse comsub in quoted PE pattern, Chet Ramey, 2023/10/18
- Re: bash tries to parse comsub in quoted PE pattern, Emanuele Torre, 2023/10/18
- Re: bash tries to parse comsub in quoted PE pattern, Chet Ramey, 2023/10/19
- Re: bash tries to parse comsub in quoted PE pattern, Emanuele Torre, 2023/10/21