From owner-freebsd-bugs Mon Jul 12 9:43: 9 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from relay01.indigo.ie (relay01.indigo.ie [194.125.133.225]) by hub.freebsd.org (Postfix) with SMTP id 3C2E714FA3 for ; Mon, 12 Jul 1999 09:42:53 -0700 (PDT) (envelope-from niall@pobox.com) Received: (qmail 21595 messnum 238097 invoked from network[194.125.134.180/ts02-053.dublin.indigo.ie]); 12 Jul 1999 16:41:42 -0000 Received: from ts02-053.dublin.indigo.ie (HELO pobox.com) (194.125.134.180) by relay01.indigo.ie (qp 21595) with SMTP; 12 Jul 1999 16:41:42 -0000 Message-ID: <378A35D9.F43A7E5A@pobox.com> Date: Mon, 12 Jul 1999 18:37:13 +0000 From: Niall Smart X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Sheldon Hearn Cc: hackers@freebsd.org, bugs@freebsd.org Subject: Re: bin/12578: `` subshell taints PWD References: <71323.931793488@axl.noc.iafrica.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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