public inbox for gentoo-project@lists.gentoo.org
 help / color / mirror / Atom feed
From: Steve Long <slong@rathaus.eclipse.co.uk>
To: gentoo-project@lists.gentoo.org
Subject: [gentoo-project]  Re: New developer: Ron Gemeinhardt (timebandit)
Date: Fri, 26 Sep 2008 09:39:59 +0100	[thread overview]
Message-ID: <gbi7l5$mc5$1@ger.gmane.org> (raw)
In-Reply-To: 8b4c83ad0809220614n514de148gd5694954ba60cb76@mail.gmail.com

Nirbheek Chauhan wrote:

> On Mon, Sep 22, 2008 at 6:22 PM, Denis Dupeyron <calchan@gentoo.org>
> 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.)





  reply	other threads:[~2008-09-26  8:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-22 12:52 [gentoo-project] New developer: Ron Gemeinhardt (timebandit) Denis Dupeyron
2008-09-22 13:14 ` Nirbheek Chauhan
2008-09-26  8:39   ` Steve Long [this message]
2008-09-29  5:27     ` [gentoo-project] " Nirbheek Chauhan
2008-09-29 20:08       ` [gentoo-project] " Steve Long
2008-09-30  3:33         ` Ron Gemeinhardt
2008-09-30  6:50           ` [gentoo-project] " Steve Long
2008-09-22 23:15 ` [gentoo-project] " Jorge Manuel B. S. Vicetto
2008-09-26  9:24   ` Wernfried Haas

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='gbi7l5$mc5$1@ger.gmane.org' \
    --to=slong@rathaus.eclipse.co.uk \
    --cc=gentoo-project@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