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 "<${
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=