From owner-freebsd-bugs Fri Jun 29 5:20:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DF71B37B420 for ; Fri, 29 Jun 2001 05:20:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5TCK7q52632; Fri, 29 Jun 2001 05:20:07 -0700 (PDT) (envelope-from gnats) Date: Fri, 29 Jun 2001 05:20:07 -0700 (PDT) Message-Id: <200106291220.f5TCK7q52632@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/28449: sh(1) aborts on certain input Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/28449; it has been noted by GNATS. From: Ruslan Ermilov To: Tor.Egge@fast.no Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/28449: sh(1) aborts on certain input Date: Fri, 29 Jun 2001 15:18:20 +0300 Ouch, then this definitely works for me, at least this doesn't abort(3)'s anymore. On Fri, Jun 29, 2001 at 02:14:49PM +0200, Tor.Egge@fast.no wrote: > > > > With my test, `c' will be -126 here, and SQSYNTAX[-126] is obviously the > > wrong thing. > > It is obviously the right thing. > > >From the generated file syntax.h: > > > #define SYNBASE 129 > #define SQSYNTAX (sqsyntax + SYNBASE) > > i.e. SQSYNTAX[-126] becomes (sqsyntax + 129)[-126] which is sqsyntax[3]. > > - Tor Egge -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message