From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kj90g-0002Pe-0X for garchives@archives.gentoo.org; Fri, 26 Sep 2008 08:49:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88703E05E6; Fri, 26 Sep 2008 08:49:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 62553E05E6 for ; Fri, 26 Sep 2008 08:49:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 4F8C664261 for ; Fri, 26 Sep 2008 08:49:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.744 X-Spam-Level: X-Spam-Status: No, score=-0.744 required=5.5 tests=[AWL=-0.701, BAYES_05=-1.11, RCVD_IN_DNSWL_LOW=-1, RCVD_NUMERIC_HELO=2.067] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kPfscJQuC1LG for ; Fri, 26 Sep 2008 08:49:01 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id B53CA646E5 for ; Fri, 26 Sep 2008 08:48:59 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kj90L-0002g6-1X for gentoo-project@gentoo.org; Fri, 26 Sep 2008 08:48:49 +0000 Received: from 91.85.185.29 ([91.85.185.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Sep 2008 08:48:49 +0000 Received: from slong by 91.85.185.29 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Sep 2008 08:48:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-project@lists.gentoo.org From: Steve Long Subject: [gentoo-project] Re: New developer: Ron Gemeinhardt (timebandit) Date: Fri, 26 Sep 2008 09:39:59 +0100 Message-ID: References: <7c612fc60809220552rccadc38me3113a64b4b95b47@mail.gmail.com> <8b4c83ad0809220614n514de148gd5694954ba60cb76@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Project discussion list X-BeenThere: gentoo-project@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 91.85.185.29 User-Agent: KNode/0.10.9 Sender: news X-Archives-Salt: 7f953222-8afd-48ad-a563-e38261ab2c78 X-Archives-Hash: 0dcfa09fba26d6d8a1617775e8082cbd Nirbheek Chauhan wrote: > On Mon, Sep 22, 2008 at 6:22 PM, Denis Dupeyron > 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.)