From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27241 invoked from network); 14 Dec 2001 15:37:25 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?V08j3J13uxQdBhga8vwbySX15f0nU/AQ?@203.24.36.3) by ns1.primenet.com.au with SMTP; 14 Dec 2001 15:37:25 -0000 Received: (qmail 1539 invoked from network); 14 Dec 2001 15:37:23 -0000 Received: from sunsite.dk (130.225.247.90) by proxy.melb.primenet.com.au with SMTP; 14 Dec 2001 15:37:23 -0000 Received: (qmail 9087 invoked by alias); 14 Dec 2001 15:37:07 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4538 Received: (qmail 9075 invoked from network); 14 Dec 2001 15:37:06 -0000 From: Bart Schaefer Message-Id: <1011214153659.ZM32027@candle.brasslantern.com> Date: Fri, 14 Dec 2001 15:36:58 +0000 In-Reply-To: <87snaet0r5.fsf@lynx.ionific.com> Comments: In reply to Hannu Koivisto "Effect of typeset -U for colon separated paths?" (Dec 14, 3:00pm) References: <87snaet0r5.fsf@lynx.ionific.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Hannu Koivisto , zsh-users@sunsite.dk Subject: Re: Effect of typeset -U for colon separated paths? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 14, 3:00pm, Hannu Koivisto wrote: } } BAR=foo:bar:baz } foo=(${(s:::)BAR} } } ...but s expansion flag couldn't split with plain ":" (for } understandable reasons). I couldn't figure out any working way to } quote it either. Andrej has already mentioned "typeset -T", but to quote the doc for the flags j, l, r, s, etc.: The following flags (except p) are followed by one or more arguments as shown. Any character, or the matching pairs `(...)', `{...}', `[...]', or `<...>', may be used in place of a colon as delimiters, but note that when a flag takes more than one argument, a matched pair of delimiters must surround each argument. So for example: BAR=foo:bar:baz foo=(${(s.:.)BAR}) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net