From owner-freebsd-bugs Tue Nov 6 20:40: 6 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 3A38D37B417 for ; Tue, 6 Nov 2001 20:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA74e2K74199; Tue, 6 Nov 2001 20:40:02 -0800 (PST) (envelope-from gnats) Date: Tue, 6 Nov 2001 20:40:02 -0800 (PST) Message-Id: <200111070440.fA74e2K74199@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Eugene Grosbein Subject: Re: bin/31627 sh(1) is broken - loss of data! Reply-To: Eugene Grosbein 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/31627; it has been noted by GNATS. From: Eugene Grosbein To: Thomas Quinot Cc: stable@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/31627 sh(1) is broken - loss of data! Date: Wed, 7 Nov 2001 11:22:02 +0700 On Tue, Nov 06, 2001 at 08:51:13PM +0100, Thomas Quinot wrote: > > I still get unexpected results: > You are absolutely right. My tests succeeded because I tried your > script on -CURRENT, where this bug was fixed a few weeks ago. > The fix to -STABLE was MFC'd last week: > > Revision 1.31.2.3 > Branch: RELENG_4 > > MFC: BASESYNTAX, DQSYNTAX, SQSYNTAX and ARISYNTAX handles negative > indexes. > Allow those to be used to properly quote characters in the shell > control character range. > > PR: 31627 > > so updating your /bin/sh with the latest -STABLE version should resolve > your problem. I've updated to -STABLE and this works now as expected. Thank you very much. PR should be closed now. Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message