Gentoo Archives: gentoo-dev

From: "Amadeusz Żołnowski" <aidecoe@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] [RFC] obs eclasses
Date: Tue, 13 Sep 2011 13:03:59
Message-Id: 1315918003-sup-9563@raeviah
In Reply to: Re: [gentoo-dev] [RFC] obs eclasses by Joshua Kinard
Excerpts from Joshua Kinard's message of 2011-09-13 14:26:02 +0200:
> > You don't need -n/-z with [[. > > > > [[ $var ]] == [[ -n $var ]] > > [[ ! $var ]] == [[ -z $var ]] > > What about other comparisons, like -f, -e, or -d?
Same as inside [, but no need of quotes inside [[.
> Also, is this a bash4-only thing, or bash3 and/or bash2 as well?
I'm not sure. OT: When I was going through recruitment process, dberkholz pointed to me that I use things bash4-only. And again: why we need to stick to ancient 3 version? I would understand pseudo POSIX compatibility, but what is the benefit of bash3 compatibility while bash4 is stable already? -- Amadeusz Żołnowski PGP key fpr: C700 CEDE 0C18 212E 49DA 4653 F013 4531 E1DB FAB5


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-dev] [RFC] obs eclasses Donnie Berkholz <dberkholz@g.o>
Re: [gentoo-dev] [RFC] obs eclasses "Michał Górny" <mgorny@g.o>