[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test -v difference between bash 5.1 and 5.2
From: |
Chet Ramey |
Subject: |
Re: test -v difference between bash 5.1 and 5.2 |
Date: |
Tue, 29 Aug 2023 14:19:45 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 |
On 8/29/23 11:56 AM, Kerin Millar wrote:
One hopes that the shell programmer knows what variable types he's
using, and uses the appropriate constructs.
Some elect to source shell code masquerading as configuration data (or are
using programs that elect to do so). Otherwise, yes, definitely.
If you find yourself needing to know whether a variable is an associative
array, an indexed array, or a scalar, check the output of the @a variable
transformation.
--
``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/