From owner-freebsd-bugs Tue Jul 13 3:10: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id B755814FBA for ; Tue, 13 Jul 1999 03:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA44084; Tue, 13 Jul 1999 03:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 13 Jul 1999 03:10:02 -0700 (PDT) Message-Id: <199907131010.DAA44084@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Niall Smart Subject: Re: bin/12578: `` subshell taints PWD Reply-To: Niall Smart Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/12578; it has been noted by GNATS. From: Niall Smart To: Sheldon Hearn Cc: hackers@freebsd.org, bugs@freebsd.org Subject: Re: bin/12578: `` subshell taints PWD Date: Mon, 12 Jul 1999 18:37:13 +0000 Sheldon Hearn wrote: > cd /tmp > echo .`cd /`. > pwd > > Any takers? The patch appended seems to fix this, I'd like someone familiar with sh to review it though, since this may be symptomatic of a general problem with command substitution. > PS: And no, this is not an invitation to chat about the default shell > for the base system. :-) You're hinting it should be /bin/sh for root, right? Regards, Niall *** eval.c~ Mon May 10 16:10:16 1999 --- eval.c Mon Jul 12 18:27:44 1999 *************** *** 710,715 **** --- 710,716 ---- && ((flags & EV_EXIT) == 0 || Tflag)) || ((flags & EV_BACKCMD) != 0 && (cmdentry.cmdtype != CMDBUILTIN + || cmdentry.u.index == CDCMD || cmdentry.u.index == DOTCMD || cmdentry.u.index == EVALCMD))) { jp = makejob(cmd, 1); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message