Date: Tue, 13 Jul 1999 11:10:53 +0000 From: Niall Smart <niall@pobox.com> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: hackers@freebsd.org Subject: Re: bin/12578: `` subshell taints PWD Message-ID: <378B1EBD.EB06F5B9@pobox.com> References: <74394.931798425@axl.noc.iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Sheldon Hearn wrote: > > 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. :-( As I understand it most builtins will not spawn a new shell when they are used in command substitution: niall% echo `echo $$` $$ 20354 20354 niall% Niall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?378B1EBD.EB06F5B9>