From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9125 invoked from network); 12 Jan 2006 05:18:07 -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=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham 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 05:18:07 -0000 Received: (qmail 2541 invoked from network); 12 Jan 2006 05:18:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Jan 2006 05:18:01 -0000 Received: (qmail 2567 invoked by alias); 12 Jan 2006 05:17:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9825 Received: (qmail 2557 invoked from network); 12 Jan 2006 05:17:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Jan 2006 05:17:49 -0000 Received: (qmail 938 invoked from network); 12 Jan 2006 05:17:49 -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 05:17:47 -0000 Received: (qmail 21872 invoked by uid 98); 12 Jan 2006 05:17:45 -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.027667 secs); 12 Jan 2006 05:17:45 -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 05:17:45 -0000 Received: from [10.64.65.5] (ipm04.gsc.riken.go.jp [134.160.83.74]) by jota.gsc.riken.go.jp (Postfix) with ESMTP id C371934854DF for ; Thu, 12 Jan 2006 14:17:44 +0900 (JST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <6DC50D24-618F-4531-BA06-0F31570283C1@jota.gsc.riken.go.jp> 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> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Wataru Kagawa Subject: Re: joining array elements Date: Thu, 12 Jan 2006 14:17:44 +0900 To: zsh-users@sunsite.dk X-Mailer: Apple Mail (2.746.2) I noticed that to get the joining to work, I have to unset the 'globsubst' option. Wataru Kagawa On 2006/01/12, at 10:59, Wataru Kagawa wrote: > Hi Bart, > > When I removed the backslashes, I have no output. Could this > problem be related to the Zsh options I have set in my > environment? I have the following options set (or unset). > > setopt \ > auto_pushd \ > NO_beep \ > brace_ccl \ > NO_cdable_vars \ > NO_clobber \ > complete_in_word \ > correct_all \ > extended_glob \ > glob_complete \ > glob_subst \ > hist_allow_clobber \ > hist_reduce_blanks \ > NO_hup \ > ignore_eof \ > interactive_comments \ > NO_list_ambiguous \ > local_options \ > local_traps \ > long_list_jobs \ > magic_equal_subst \ > null_glob \ > path_dirs \ > posix_builtins \ > print_eight_bit \ > pushd_ignore_dups \ > pushd_minus \ > pushd_to_home \ > rc_expand_param \ > NO_sh_in_stdin \ > share_history \ > > > I appreciate your help very much. > > Wataru Kagawa > > > On 2006/01/12, at 10:41, Bart Schaefer wrote: > >> On Jan 12, 10:22am, Wataru Kagawa wrote: >> } >> } Bob[return]Sara[return]Tim >> } >> } as an output (without the backslashes in front of the square >> } brackets). I started out with, >> } >> } echo ${(j:\[return\]:)usernames} >> } >> } and added extra backslashes, but that did not work for me. Help is >> } greatly appreciated. >> >> Did you try *removing* the backslashes? This works fine for me: >> >> echo ${(j:[return]:)usernames} >> >> Also keep in mind that "echo" might be doing some conversions of its >> own if you have anything unusual in $usernames -- you might be better >> off with e.g. >> >> print -R -- ${(j:[return]:)usernames} >