Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-dev@g.o
From: Joshua Kinard <kumba@g.o>
Subject: Re: [RFC] obs eclasses
Date: Tue, 13 Sep 2011 08:26:02 -0400
On 09/13/2011 07:24, Amadeusz Żołnowski wrote:

> Hi,
> Excerpts from Michal Hrusecky's message of 2011-09-13 13:11:28 +0200:
>> Comments and improvements are welcome.
> Just some minor remarks:
>> [[ -n ${OBS_PROJECT} ]]      || die "OBS_PROJECT not set!"
>> [[ -n ${OBS_PACKAGE} ]]      || die "OBS_PACKAGE not set!"
> You don't need -n/-z with [[.
>   [[ $var ]] == [[ -n $var ]]
>   [[ ! $var ]] == [[ -z $var ]]

What about other comparisons, like -f, -e, or -d?  Bash's manpage only says
[[ expression ]] -- it doesn't seem to go into the level of detail (at least
not in the section that I quickly perused) about what flag operators are
necessary or not.

Also, is this a bash4-only thing, or bash3 and/or bash2 as well?

If yes to above, we should get this edited and fixed up, then, because it
uses -z/-n inside [[ ]]:

Oh, forgot, it won't break initscripts, will it?

Joshua Kinard
4096R/D25D95E3 2011-03-28

"The past tempts us, the present confuses us, the future frightens us.  And
our lives slip away, moment by moment, lost in that vast, terrible in-between."

--Emperor Turhan, Centauri Republic

signature.asc (OpenPGP digital signature)
Re: [RFC] obs eclasses
-- Steven J Long
Re: [RFC] obs eclasses
-- Amadeusz Żołnowski
[RFC] obs eclasses
-- Michal Hrusecky
Re: [RFC] obs eclasses
-- Amadeusz Żołnowski
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [RFC] obs eclasses
Next by thread:
Re: [RFC] obs eclasses
Previous by date:
Lastrite: xdtv, video-entropyd, qutecom, vdr-pvr350, SDLcam, vdr-avards, vdr-atmo, and gnomeradio
Next by date:
Re: [RFC] obs eclasses

Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.