[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] remove config.status race condition

From: Pavel Roskin
Subject: Re: [patch] remove config.status race condition
Date: Fri, 23 Feb 2001 14:27:06 -0500 (EST)

Hello, Akim!

> Second means consists in just using $$.  We have room for this:
> s/conftest/conf$$/, I really can't understand why we'd need something
> more complex.

Are you sure that $$ is always preserved across subshells? What it I
create conf$$ in a subshell but want to access it in the top level shell?

All the shells I tried (bash, zsh, ash) don't change $$, but if there is
an exception, we are in trouble.

Specifically, the following code should print the same number three times:

/bin/echo $$; /bin/echo `/bin/echo $$`; (/bin/echo $$)

Pavel Roskin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]