Gentoo Archives: gentoo-project

From: Nirbheek Chauhan <nirbheek.chauhan@×××××.com>
To: Denis Dupeyron <calchan@g.o>
Cc: gentoo-project@l.g.o
Subject: Re: [gentoo-project] New developer: Ron Gemeinhardt (timebandit)
Date: Mon, 22 Sep 2008 13:14:18
Message-Id: 8b4c83ad0809220614n514de148gd5694954ba60cb76@mail.gmail.com
In Reply to: [gentoo-project] New developer: Ron Gemeinhardt (timebandit) by Denis Dupeyron
1 On Mon, Sep 22, 2008 at 6:22 PM, Denis Dupeyron <calchan@g.o> wrote:
2 > I'm pleased to introduce Ron Gemeinhardt (timebandit) as a new Gentoo
3 > developer. Ron will be a moderator with the forums team.
4
5 Congrats, Ron, welcome and all that :-)
6
7 > Ron is an electrical engineer in theory and a software architect in
8 > practice. Having been in the IT business for more than 25 years he has
9 > extensive knowledge of $(for ACRONYM in "${LinkedIn}"; do echo -n "
10 > ${ACRONYM},"; done). This also automatically gives him access to the
11 [...]
12 > PS. The first one who comments about a comma at the end of the script
13 > output above gets a free review with me. First-class care guaranteed.
14
15 Actually, your fail was more than that.
16
17 If "LinkedIn" were a variable, then
18
19 $(for ACRONYM in ${LinkedIn}; do echo -n "${ACRONYM},"; done)
20
21 elif "LinkedIn" were an array, then
22
23 $(for ACRONYM in "${LinkedIn[@]}"; do echo -n "${ACRONYM},"; done)
24
25 Also, the extra comma can be fixed by doing the following:
26
27 $(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo -ne '\b')
28
29 So, where's my free review? ;p
30
31 --
32 ~Nirbheek Chauhan

Replies

Subject Author
[gentoo-project] Re: New developer: Ron Gemeinhardt (timebandit) Steve Long <slong@××××××××××××××××××.uk>