From owner-freebsd-bugs Wed Dec 4 4:10: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C008037B401 for ; Wed, 4 Dec 2002 04:10:07 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 786D743E4A for ; Wed, 4 Dec 2002 04:10:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gB4CA7x3042832 for ; Wed, 4 Dec 2002 04:10:07 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gB4CA6Fg042813; Wed, 4 Dec 2002 04:10:06 -0800 (PST) Date: Wed, 4 Dec 2002 04:10:06 -0800 (PST) Message-Id: <200212041210.gB4CA6Fg042813@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Ralf S. Engelschall" Subject: Re: bin/41410: /bin/sh bug on expanding $? in here-documents Reply-To: "Ralf S. Engelschall" 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/41410; it has been noted by GNATS. From: "Ralf S. Engelschall" To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: Subject: Re: bin/41410: /bin/sh bug on expanding $? in here-documents Date: Wed, 4 Dec 2002 13:09:15 +0100 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