From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12497 invoked from network); 11 Feb 2006 19:43: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; 11 Feb 2006 19:43:07 -0000 Received: (qmail 93137 invoked from network); 11 Feb 2006 19:43:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Feb 2006 19:43:01 -0000 Received: (qmail 16287 invoked by alias); 11 Feb 2006 19:42:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22233 Received: (qmail 16273 invoked from network); 11 Feb 2006 19:42:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Feb 2006 19:42:57 -0000 Received: (qmail 92821 invoked from network); 11 Feb 2006 19:42:57 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 11 Feb 2006 19:42:56 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IUJ0069GG3I2LT4@vms042.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 11 Feb 2006 13:42:55 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id k1BJgrZx006066 for ; Sat, 11 Feb 2006 11:42:53 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id k1BJgrkB006065 for zsh-workers@sunsite.dk; Sat, 11 Feb 2006 11:42:53 -0800 Date: Sat, 11 Feb 2006 19:42:53 +0000 From: Bart Schaefer Subject: Re: [SOLVED] Libtool/zsh quoting problem: a zsh... bug? In-reply-to: <20060211181440.GA30984@dot.blorf.net> To: Zsh-workers Message-id: <1060211194253.ZM6064@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20060209233201.GA5875@fargo> <20060211093607.GD10579@DervishD> <200602111321.48602.arvidjaar@newmail.ru> <20060211181440.GA30984@dot.blorf.net> Comments: In reply to Wayne Davison "Re: [SOLVED] Libtool/zsh quoting problem: a zsh... bug?" (Feb 11, 10:14am) On Feb 11, 10:14am, Wayne Davison wrote: } } + if (spbreak && (*s == Dnull || *s == Snull)) } + spbreak = 0; } } This will turn off word-splitting if the string started with a single or } a double quote. This is incomplete because the arg may be something } more complicated (such as: 'one' 'two' 'three four'), but it seems } better than what we have now. I experimented with but rejected a similar patch back around the time of the previous discussion because of what happens with ${1+word "$@"}. It seemed better to me for the shell to behave consistently even if not posixly-correctly, and I'm loathe to mask an obvious bug with a less- obvious one. However, I wouldn't object to Wayne's patch if others think it's a good idea. } One question I have is what to do about ${=1:"$@"}? In the patch above, } I chose to let the double quotes override the '='. If that is not } desired, change the new "if" to only trigger disallow an spbreak of 2: I think the latter would be more consistent with other treatment of ${=...}, but again it's not a big deal. -- Bart Schaefer http://www.well.com/user/barts