bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:59:38 +0100

On Wed, Nov 19, 2014 at 9:56 PM, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
>
> That would break existing scripts.  $#a already means "argc followed by
> the letter a".
>
> If you meant ${#a}, that would *still* break existing scripts, because
> ${#a} when a is an array currently means "the length of a[0]".

 yes, right of course. but dont you think that there should be
something that returns length of an object, in the above sense?

pg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]