From: Ryan Hill <dirtyepic@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: controlling src_test
Date: Thu, 04 Oct 2007 15:16:01 -0600 [thread overview]
Message-ID: <fe3l6i$rqd$1@sea.gmane.org> (raw)
In-Reply-To: <47054D90.6080308@gentoo.org>
Alin Năstac wrote:
> Ryan Hill wrote:
>> NEWFEATURES=
>>
>> for f in ${FEATURES}; do
>> if [[ ! $f == "test" ]]; then
>> NEWFEATURES="${NEWFEATURES} $f"
>> fi
>> done
>>
>> FEATURES="${NEWFEATURES}"
>>
>>
> There is a simpler way to remove a word from an environment variable:
> FEATURES=" ${FEATURES}" # make sure every word is prefixed by a space
> FEATURES=${FEATURES/ test/}
Doh. I tried ${FEATURES## test} but didn't think of substitution.
This actually solves another problem for me. Thanks.
--
fonts / wxWindows / gcc-porting / treecleaners
EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662 (0xF9A40662)
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2007-10-04 21:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 1:50 [gentoo-dev] controlling src_test Ryan Hill
2007-10-04 6:51 ` Ravi Pinjala
2007-10-04 13:36 ` Doug Goldstein
2007-10-04 14:36 ` Thomas Anderson
2007-10-04 14:51 ` Rémi Cardona
2007-10-04 17:39 ` [gentoo-dev] " Ryan Hill
2007-10-04 19:47 ` Ryan Hill
2007-10-04 21:10 ` Chris Gianelloni
2007-10-04 21:18 ` Rémi Cardona
2007-10-05 1:34 ` Ryan Hill
2007-10-04 20:31 ` Alin Năstac
2007-10-04 21:16 ` Ryan Hill [this message]
2007-10-04 23:14 ` [gentoo-dev] " Marius Mauch
2007-10-04 23:32 ` Bo Ørsted Andresen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='fe3l6i$rqd$1@sea.gmane.org' \
--to=dirtyepic@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox