Did you read sh(1) man page? It says that in () everything occurs in a subshell, except exit. BTW I don't say autoconf should be supported on any platform, just autoconf scratches it's head with a keyboard when it itches.
Maybe the copyright notice bothers the poster. BTW writing portable shell script is a hell if you have only bash. Just look at an output of autoconf and have a laugh over it:
Did you read sh(1) man page? It says that in () everything occurs in a subshell, except exit. BTW I don't say autoconf should be supported on any platform, just autoconf scratches it's head with a keyboard when it itches.
Maybe the copyright notice bothers the poster. BTW writing portable shell script is a hell if you have only bash. Just look at an output of autoconf and have a laugh over it:
In bash you cannot do this:
test -d "$dir" || ( echo "$dir doesn't exists"; exit 1)
Thus, autoconf creates this kind of exit:
test -d "$dir" || { { echo "$dir doesn't exists" > }; echo "$dir doesn't exists" > { (exit 1;) exit 1; }; };
Lovely, eh?