Re: test '-v' - associative vs. normal array discrepancy - a bug ?
From:
Piotr Grzybowski
Subject:
Re: test '-v' - associative vs. normal array discrepancy - a bug ?
Date:
Wed, 19 Nov 2014 21:07:01 +0100
On Wed, Nov 19, 2014 at 8:59 PM, Jason Vas Dias
<jason.vas.dias@gmail.com> wrote:
> [..]
> It would be nice if -v could mean 'has any non-empty member' for
> both associative and normal arrays - I think Piotr's suggestion
> to make it do this is a good one.
just as you were writing this, I kind of agreed that using ${#a[*]}
is a better idea :)
Maybe someone will find some solution, without a 20-mails argument ;-)
cheers,
pg