From owner-freebsd-hackers Mon Jul 12 9:55:42 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 9F1ED1507F for ; Mon, 12 Jul 1999 09:55:08 -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 113jKr-000JLv-00; Mon, 12 Jul 1999 18:53:45 +0200 From: Sheldon Hearn To: Niall Smart Cc: hackers@freebsd.org Subject: Re: bin/12578: `` subshell taints PWD In-reply-to: Your message of "Mon, 12 Jul 1999 18:37:13 GMT." <378A35D9.F43A7E5A@pobox.com> Date: Mon, 12 Jul 1999 18:53:45 +0200 Message-ID: <74394.931798425@axl.noc.iafrica.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 12 Jul 1999 18:37:13 GMT, Niall Smart wrote: > 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. As I understand your patch, you're saying "we should fork off a child process when the command in question is cd"? This is what I missed when I tried ``echo .`sleep 600`.'' and assumed that the result was proof that we always spawn a subprocess for backtick evaluation. :-( Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message