On 9/28/26 4:52 PM, [email protected] wrote:
My point was to show the result of missing the second -g:declare -r arr declare -ai arr=([0]="1" [1]="2" [2]="3") Which is not what a user would intend, to illustrate the silliness of avoiding the single command form of declare.
You don't have to avoid it if you can't. What you can't do is actively
defeat the heuristics the shell uses to detect what is going on.
--
``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
