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    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to