List Archive: gentoo-project
On Fri, Sep 26, 2008 at 2:09 PM, Steve Long <slong@...> wrote:
> Nirbheek Chauhan wrote:
>> Actually, your fail was more than that.
>>
> Tsk I thought you were better-mannered bheekling ;p
>
I had a momentary lapse of reason and had decided to join the ranks of
the lesser-mannered among us on these lists. I have since relapsed
back to my goody-goody self :p
>> $(for ACRONYM in ${LinkedIn}; do echo -en "${ACRONYM},"; done; echo -ne
>> '\b')
>>
> Now that *is* fail ;-)
Crap! I forgot, \b only works for displaying in the terminal; doesn't
actually "backspace" :(
>
>> 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.)
Sigh... I think it's better to just live with the extra comma :p
--
~Nirbheek Chauhan
|
|