From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22178 invoked from network); 11 Oct 2005 14:44:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Oct 2005 14:44:27 -0000 Received: (qmail 52907 invoked from network); 11 Oct 2005 14:44:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Oct 2005 14:44:21 -0000 Received: (qmail 27679 invoked by alias); 11 Oct 2005 14:44:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21866 Received: (qmail 27670 invoked from network); 11 Oct 2005 14:44:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Oct 2005 14:44:17 -0000 Received: (qmail 52610 invoked from network); 11 Oct 2005 14:44:17 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 11 Oct 2005 14:44:17 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IO70002HA8YDWT0@vms042.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 11 Oct 2005 09:43:47 -0500 (CDT) 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 j9BEhibJ014476 for ; Tue, 11 Oct 2005 07:43:45 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j9BEhilo014475 for zsh-workers@sunsite.dk; Tue, 11 Oct 2005 07:43:44 -0700 Date: Tue, 11 Oct 2005 14:43:42 +0000 From: Bart Schaefer Subject: Re: [bug] backslash stripped in sh/ksh emulation In-reply-to: <20051011123624.70fc9626.pws@csr.com> To: zsh-workers@sunsite.dk Message-id: <1051011144343.ZM14474@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20051011083842.GA5380@sc> <20051011123624.70fc9626.pws@csr.com> Comments: In reply to Peter Stephenson "Re: [bug] backslash stripped in sh/ksh emulation" (Oct 11, 12:36pm) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Oct 11, 12:36pm, Peter Stephenson wrote: } } So I've introduced a variant of Bnull, the ghost of a backslash, called } Bnullkeep. I was a bit skeptical of this when I read the description, but looking at the patch I think it's actually OK. This shouldn't change anything when GLOB_SUBST is not set, right? } Nonetheless, this doesn't give me a warm, fuzzy feeling. If anyone can } think of places where this might have the wrong effect... subst.c and exec.c seem to be the only source files that mention both INULL and GLOBSUBST, or call shtokenize() [exec.c only when GLOBSUBST is set]. So on first blush I think you've covered it nicely. } (It's just possible we could get away with only using Bnullkeep by suitable } changes, simplifying the code a bit.) Did you mean "only using Bnull"? Otherwise I don't follow.