From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1446 invoked from network); 16 Feb 2001 08:51:05 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Feb 2001 08:51:05 -0000 Received: (qmail 22721 invoked by alias); 16 Feb 2001 08:50:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13493 Received: (qmail 22709 invoked from network); 16 Feb 2001 08:50:58 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Zsh hackers list" Subject: RE: PATCH: Re: More incompatibility (word splitting) Date: Fri, 16 Feb 2001 11:50:51 +0300 Message-ID: <001601c097f5$90e19b20$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <1010216074307.ZM16574@candle.brasslantern.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > > Here's the patch as I'm willing to commit it right now. I'm going to be > out of town all next week, so I'm not going to be able to mess with it > any further, and I don't want to put something really broken into CVS > right before I disappear. > Does it really fix two described incompatibilities? O bor@itsrm2% Src/zsh bor@itsrm2% setopt shwordsplit bor@itsrm2% foo=$'foo\nbar' bor@itsrm2% print "$foo" foo bar bor@itsrm2% bar=${1-$foo} bor@itsrm2% print "$bar" foo bar <= wrong bor@itsrm2% set "a b c" 1 2 bor@itsrm2% print -l ${1+"$@"} a b c 1 2 bor@itsrm2% exit -andrej