From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id GAA26846 for ; Sat, 20 Jul 1996 06:33:25 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id QAA25250; Fri, 19 Jul 1996 16:28:14 -0400 (EDT) Resent-Date: Fri, 19 Jul 1996 16:28:14 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199607192027.WAA10283@bolyai.cs.elte.hu> Subject: Re: Misc. unresolved stuff To: schaefer@nbn.com Date: Fri, 19 Jul 1996 22:27:44 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <960719125917.ZM391@candle.brasslantern.com> from Bart Schaefer at "Jul 19, 96 12:59:17 pm" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"JNG013.0.TA6.T_-xn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1723 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Bart wrote: > > ! while (*++str != endchar) > > ! DPUTS(!*str, "Oops. parse error in command substitution"); > > Shouldn't that be: > > while (*++str && *str != endchar) > > ?? Otherwise you could go wandering off the end of str ... At least it will be obvious that something is wrong. It should be impossible for a null to come before the endchar. Zoltan