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