pir - 2011-07-20

The variables are replaced before the call of the sub-shell
For example echo `echo $$` will always give you the pid of the main shell.

So this bug is even weirder, it's not a subshell problem, maybe caching of variables before subshell calls.

echo $RANDOM will print the same value you had with the last echo `echo $RANDOM` and change it.
Then, doing echo `echo $RANDOM` will give you a new number, but always the same until you call echo $RANDOM.