From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16372 invoked from network); 15 May 2000 11:33:05 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 May 2000 11:33:05 -0000 Received: (qmail 13576 invoked by alias); 15 May 2000 11:32:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11369 Received: (qmail 13567 invoked from network); 15 May 2000 11:32:34 -0000 From: "Bart Schaefer" Message-Id: <1000515113159.ZM16099@candle.brasslantern.com> Date: Mon, 15 May 2000 11:31:59 +0000 In-Reply-To: <200005151059.MAA15570@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "PATCH: Re: splitting with empty separator." (May 15, 12:59pm) References: <200005151059.MAA15570@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Re: splitting with empty separator. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 15, 12:59pm, Sven Wischnowsky wrote: } Subject: PATCH: Re: splitting with empty separator. } } > Hm. Splitting with empty separator generates curious result. } > Maybe a metafied character is splitted? } } Yes, seems as if it was only missing for the special case of a given } but empty separator string. Hm again. Here's the 3.0.8 prelease with 11368 applied: zagzig% a="$(print -P '\0')" zagzig% b=(${(s::)a}); print $#b 1 zagzig% print -R - "$b" | cat -v ^@ Now here's 3.1.7-pre-3 with 11368 applied: zagzig% a="$(print -P '\0')" zagzig% b=(${(s::)a}); print $#b 2 zagzig% print -R - "$b" | cat -v ^@ zagzig% print -R - "$a" | cat -v ^@ What's the second character in $b in 3.1.7-pre-3? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com