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-project
Navigation:
Lists: gentoo-project: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-project@g.o
From: Steve Long <slong@...>
Subject: Re: New developer: Ron Gemeinhardt (timebandit)
Date: Fri, 26 Sep 2008 09:39:59 +0100
Nirbheek Chauhan wrote:

> On Mon, Sep 22, 2008 at 6:22 PM, Denis Dupeyron <calchan@g.o>
> wrote:
>> I'm pleased to introduce Ron Gemeinhardt (timebandit) as a new Gentoo
>> developer. Ron will be a moderator with the forums team.
> 
> Congrats, Ron, welcome and all that :-)
>
Welcome to the madhouse Ron :D
 
>> Ron is an electrical engineer in theory and a software architect in
>> practice. Having been in the IT business for more than 25 years
Yay, an old-timer! Excellent :-)

>> he has 
>> extensive knowledge of $(for ACRONYM in "${LinkedIn}"; do echo -n "
>> ${ACRONYM},"; done). This also automatically gives him access to the
> [...]
>> PS. The first one who comments about a comma at the end of the script
>> output above gets a free review with me. First-class care guaranteed.
> 
> Actually, your fail was more than that.
>
Tsk I thought you were better-mannered bheekling ;p
 
> If "LinkedIn" were a variable, then
> 
> $(for ACRONYM in ${LinkedIn}; do echo -n "${ACRONYM},"; done)
> 
> elif "LinkedIn" were an array, then
> 
> $(for ACRONYM in "${LinkedIn[@]}"; do echo -n "${ACRONYM},"; done)
> 
> Also, the extra comma can be fixed by doing the following:
> 
> $(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo -ne
> '\b')
>
Now that *is* fail ;-)
 
> So, where's my free review? ;p
> 
isArr LinkedIn || LinkedIn=($LinkedIn)
oIFS=$IFS
IFS=,                   # This line and next are what you should
echo "${LinkedIn[*]}"   # be aware of. cf: /msg greybot $@
IFS=$oIFS

(We just do: declare -r oIFS=$IFS
..at the start of our scripts, as it makes life easier in the long-run.)




Replies:
Re: Re: New developer: Ron Gemeinhardt (timebandit)
-- Nirbheek Chauhan
References:
New developer: Ron Gemeinhardt (timebandit)
-- Denis Dupeyron
Re: New developer: Ron Gemeinhardt (timebandit)
-- Nirbheek Chauhan
Navigation:
Lists: gentoo-project: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: New developer: Ron Gemeinhardt (timebandit)
Next by thread:
Re: Re: New developer: Ron Gemeinhardt (timebandit)
Previous by date:
[project] Re: Default src_install for EAPI-2 or following EAPI
Next by date:
Re: New developer: Ron Gemeinhardt (timebandit)


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.