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 |