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 23:05:51 +0100

On Wed, Nov 19, 2014 at 10:51 PM, Eduardo A. Bustamante López
<dualbus@gmail.com> wrote:
> On Wed, Nov 19, 2014 at 10:32:52PM +0100, Piotr Grzybowski wrote:
>>  I do understand your point. Dont you understand the need to check in
>> a simple (I know, nothing works, nothing is simple ;-)) way that given
>> variable has value? no matter what it is?
>
> there:
>
> is_defined3() {
>     { declare -p -- "$1" && ! declare -fp -- "$1"; } 2>/dev/null >&2
> }

 I dont know, but looks like a reusable code to me.

cheers,
pg



reply via email to

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