Re: null array[*] expansion not treated as null

2018-11-25 Thread L A Walsh
On 11/12/2018 1:32 PM, Grisha Levit wrote: When an array A has non-zero elements but the expansion of "${A[*]}" is still a null string, it is not treated as such for purposes of ${var:-X} expansion (though $* is treated as null in the same circumstance). $ A=(''); set -- '' $ echo "<${

null array[*] expansion not treated as null

2018-11-12 Thread Grisha Levit
When an array A has non-zero elements but the expansion of "${A[*]}" is still a null string, it is not treated as such for purposes of ${var:-X} expansion (though $* is treated as null in the same circumstance). $ A=(''); set -- '' $ echo "<${A[*]:-X}>" "<${*:-X}>" <> $ IFS=