From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4990 invoked from network); 12 Jan 2006 15:16:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SORBS_WEB autolearn=no version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Jan 2006 15:16:31 -0000 Received: (qmail 11644 invoked from network); 12 Jan 2006 15:16:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Jan 2006 15:16:23 -0000 Received: (qmail 21328 invoked by alias); 12 Jan 2006 15:16:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9832 Received: (qmail 21318 invoked from network); 12 Jan 2006 15:16:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Jan 2006 15:16:16 -0000 Received: (qmail 10532 invoked from network); 12 Jan 2006 15:16:16 -0000 Received: from ykdmp01.yokohama.riken.go.jp (HELO ykdmp01.yokohama.riken.jp) (134.160.82.30) by a.mx.sunsite.dk with SMTP; 12 Jan 2006 15:16:14 -0000 Received: (qmail 94424 invoked by uid 98); 12 Jan 2006 15:16:11 -0000 Received: from 134.160.84.23 by ykdmp01.yokohama.riken.jp (envelope-from , uid 82) with qmail-scanner-1.25 (sophie: 3.04/2.31/3.98. spamassassin: 3.1.0. Clear:RC:1(134.160.84.23):. Processed in 0.027568 secs); 12 Jan 2006 15:16:11 -0000 Received: from unknown (HELO jota.gsc.riken.go.jp) (134.160.84.23) by ykdmp01.yokohama.riken.go.jp with SMTP; 12 Jan 2006 15:16:11 -0000 Received: from [10.0.1.2] (h219-110-074-001.catv01.itscom.jp [219.110.74.1]) by jota.gsc.riken.go.jp (Postfix) with ESMTP id DD09F34854DF; Fri, 13 Jan 2006 00:16:10 +0900 (JST) In-Reply-To: References: <36947C4E-7C19-4BB5-A43B-EC8D3EF0713A@jota.gsc.riken.go.jp> <1060112014126.ZM717@candle.brasslantern.com> <6DC50D24-618F-4531-BA06-0F31570283C1@jota.gsc.riken.go.jp> <0852320A-7790-45A1-9BE5-8B7AB27BD107@jota.gsc.riken.go.jp> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <099C7AA9-7279-400E-A8A4-8C3509666DF6@jota.gsc.riken.go.jp> Cc: zsh-users@sunsite.dk, Wataru Kagawa Content-Transfer-Encoding: 7bit From: Wataru Kagawa Subject: Re: joining array elements Date: Fri, 13 Jan 2006 00:16:09 +0900 To: Peter Stephenson X-Mailer: Apple Mail (2.746.2) Hi Peter, I am not sure if I understand your question about the nullglob option, but regardless of the nullglob option, echo $foo didn't output the right thing. The difference between having or not having the nullglob option was, no output when nullglob option was set versus the following output when the nullglob option was turned off. zsh: no matches found: David\nMatt\nBob[return]Sara[return]Tim print -r "$foo" worked under both conditions. Actually, I wanted to pass the value to a command (zsh function), so the two examples you gave me, > usernames=(Bob Sara Tim) > usernames2=(David Matt ${(j.[return].)~~usernames}) > foo=${(F)~~usernames2} > > usernames=(Bob Sara Tim) > usernames2=(David Matt "${(j.[return].)usernames}") > foo="${(F)usernames2}" are exactly what I was looking for. They work perfectly. Thank you very much. I really appreciate all the help. Wataru Kagawa