Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Steve Long <slong@...>
Subject: Re: Re: RFC: qemu -> add gcc-3.x dependency
Date: Tue, 13 May 2008 02:21:20 +0100
Matthias Schwarzott wrote:
> Well, you want it compact, without loops.
> Here is it:
> 
> set -- /usr/bin/gcc-3*
> Get first entry: CC="$1"
> Get last entry: eval CC="\${$#}"
> 
Nice one, yeah I thought : splitting was posix silly me ;)
I still shy clear of eval for general use and you have to go thru
contortions with sh, so I'll stick with BASH arrays and "syntactic sugar"
which gets twisted enough as it is.


-- 
gentoo-dev@g.o mailing list


References:
RFC: qemu -> add gcc-3.x dependency
-- Enrico Weigelt
Re: RFC: qemu -> add gcc-3.x dependency
-- Matthias Schwarzott
Re: RFC: qemu -> add gcc-3.x dependency
-- Steve Long
Re: Re: RFC: qemu -> add gcc-3.x dependency
-- Matthias Schwarzott
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: RFC: qemu -> add gcc-3.x dependency
Next by thread:
Re: RFC: qemu -> add gcc-3.x dependency
Previous by date:
Re: Bug wrangling
Next by date:
Re: Re: Bug wrangling


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.