From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5242 invoked from network); 12 Jan 2006 02:00: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 02:00:07 -0000 Received: (qmail 69046 invoked from network); 12 Jan 2006 01:59:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Jan 2006 01:59:57 -0000 Received: (qmail 9315 invoked by alias); 12 Jan 2006 01:59:51 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9824 Received: (qmail 9305 invoked from network); 12 Jan 2006 01:59:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Jan 2006 01:59:50 -0000 Received: (qmail 68002 invoked from network); 12 Jan 2006 01:59:50 -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 01:59:48 -0000 Received: (qmail 96713 invoked by uid 98); 12 Jan 2006 01:59:46 -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.027123 secs); 12 Jan 2006 01:59:46 -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 01:59: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 30B8F34854DF; Thu, 12 Jan 2006 10:59:45 +0900 (JST) In-Reply-To: <1060112014126.ZM717@candle.brasslantern.com> References: <36947C4E-7C19-4BB5-A43B-EC8D3EF0713A@jota.gsc.riken.go.jp> <1060112014126.ZM717@candle.brasslantern.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6DC50D24-618F-4531-BA06-0F31570283C1@jota.gsc.riken.go.jp> Cc: zsh-users@sunsite.dk Content-Transfer-Encoding: 7bit From: Wataru Kagawa Subject: Re: joining array elements Date: Thu, 12 Jan 2006 10:59:45 +0900 To: Bart Schaefer X-Mailer: Apple Mail (2.746.2) 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}