From owner-freebsd-hackers Mon Jul 12 8:31:46 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 542BC14F3A for ; Mon, 12 Jul 1999 08:31:30 -0700 (PDT) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.02 #1) id 113i3E-000IYO-00 for hackers@freebsd.org; Mon, 12 Jul 1999 17:31:28 +0200 From: Sheldon Hearn To: hackers@freebsd.org Subject: Re: bin/12578: `` subshell taints PWD Date: Mon, 12 Jul 1999 17:31:28 +0200 Message-ID: <71323.931793488@axl.noc.iafrica.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, I'm hoping someone here is interested in tracking down a bug in our /bin/sh . Changing directory within a backtick (``) subshell in sh taints the parent's working directory. The following sample code gives the expected result for /bin/csh, but breaks for /bin/sh cd /tmp echo .`cd /`. pwd Any takers? Ciao, Sheldon. PS: And no, this is not an invitation to chat about the default shell for the base system. :-) PPS: Shhhh! PPPS: www.shhhh.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message