From owner-freebsd-bugs Wed Dec 4 4: 9:25 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5355237B401; Wed, 4 Dec 2002 04:09:24 -0800 (PST) Received: from visp.engelschall.com (en4.engelschall.com [195.27.176.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A28143E88; Wed, 4 Dec 2002 04:09:23 -0800 (PST) (envelope-from rse@engelschall.com) Received: by visp.engelschall.com (Postfix, from userid 1005) id E1BF24CE696; Wed, 4 Dec 2002 13:09:21 +0100 (CET) Received: by en1.engelschall.com (Postfix, from userid 10000) id 60C02286BC; Wed, 4 Dec 2002 13:09:15 +0100 (CET) Date: Wed, 4 Dec 2002 13:09:15 +0100 From: "Ralf S. Engelschall" To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/41410: /bin/sh bug on expanding $? in here-documents Message-ID: <20021204120915.GA44232@engelschall.com> Reply-To: rse@engelschall.com References: <20020807142252.6F12B28693@en1.engelschall.com> <200208071430.g77EU28U097519@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208071430.g77EU28U097519@freefall.freebsd.org> User-Agent: Mutt/1.4i Organization: Engelschall, Germany. X-Web-Homepage: http://www.engelschall.com/ X-PGP-Public-Key: http://www.engelschall.com/ho/rse/pgprse.asc X-PGP-Fingerprint: 00 C9 21 8E D1 AB 70 37 DD 67 A2 3A 0A 6F 8D A5 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 companion PR in NetBSD was fixed a few days ago now with the following commit: http://cvsweb.netbsd.org/bsdweb.cgi/basesrc/bin/sh/eval.c.diff?r1=1.67&r2=1.68 | Fixes from David Laight: | - ansification | - format of output of jobs command (etc) | - job identiers %+, %- etc | - $? and $(...) | - correct quoting of output of set, export -p and readonly -p | - differentiation between nornal and 'posix special' builtins | - correct behaviour (posix) for errors on builtins and special builtins | - builtin printf and kill | - set -o debug (if compiled with DEBUG) | - cd src obj (as ksh - too useful to do without) | - unset -e name, remove non-readonly variable from export list. | (so I could unset -e PS1 before running the test shell...) Unfortunately this fix contains also other changes, so someone first has to extract out the parts which apply only to this problem here. Or do we want all those fixes? Ralf S. Engelschall rse@engelschall.com www.engelschall.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message