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: Greg Wooledge
Subject: Re: test '-v' - associative vs. normal array discrepancy - a bug ?
Date: Wed, 19 Nov 2014 17:30:10 -0500
User-agent: Mutt/1.4.2.3i

On Wed, Nov 19, 2014 at 11:22:48PM +0100, Piotr Grzybowski wrote:
> On Wed, Nov 19, 2014 at 11:16 PM, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> > So far, so good.  But....
> >
> > imadev:~$ foo() { echo foo; }
> > imadev:~$ foo=bar
> > imadev:~$ is_defined3 foo ; echo $?
> > 1
> 
>  Greg, does that mean, that "nothing works correctly"?

It demonstrates how easy it is to do things wrong in bash.  Eduardo is
an experienced bash programmer, and even after several tries, he still
got it wrong.



reply via email to

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