From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IdLO2-0002a0-8P for garchives@archives.gentoo.org; Thu, 04 Oct 2007 07:44:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l947YhNN006297; Thu, 4 Oct 2007 07:34:43 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l947WpNq004043 for ; Thu, 4 Oct 2007 07:32:51 GMT Received: from gentoo.org (c-67-171-150-177.hsd1.or.comcast.net [67.171.150.177]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 0E2226495F for ; Thu, 4 Oct 2007 07:32:51 +0000 (UTC) Date: Thu, 4 Oct 2007 00:32:49 -0700 From: Donnie Berkholz To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in x11-libs/qt: ChangeLog qt-4.3.2.ebuild Message-ID: <20071004073249.GZ15143@supernova> References: <20071003173803.GX15143@supernova> <1191480544.2542.5.camel@uberpc.marples.name> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1191480544.2542.5.camel@uberpc.marples.name> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 3f41c5c3-76f4-4c1f-8f49-9b813fdf2133 X-Archives-Hash: 03148bf06e224880ac5a64765165333a On 07:49 Thu 04 Oct , Roy Marples wrote: > On Thu, 2007-10-04 at 05:03 +0100, Steve Long wrote: > > Donnie Berkholz wrote: > > > > > spec=$(echo ${CHOST} | cut -d- -f3) > > > > > You can do this without resort to an external process: > > IFS=- > > read _ _ spec _ <<< "$CHOST" > > unset IFS > > - or you can do: > > IFS=- > > arr=($CHOST) > > unset IFS > > spec=${arr[2]} > > See, another use of bash arrays just because you can? Sure. If there's no requirement to stick to portable sh, why shouldn't we use whatever features of bash we like? Thanks, Donnie -- gentoo-dev@gentoo.org mailing list