From: Matthias Urlichs Date: Thu, 27 Oct 2005 08:50:00 GMT Subject: Re: [PATCH] Avoid using dc in git-count-objects Message-ID: In-Reply-To: <20051026083658.GE30889@pasky.or.cz> Hi, Petr Baudis wrote: > Dear diary, on Wed, Oct 26, 2005 at 10:33:33AM CEST, I got a letter > where Johannes Schindelin told me that... >> Aargh! I had the impression "expr" was a builtin... Just forget about the >> patch, okay? > > I think that builtin or not, $() will always spawn a subshell. ...? It'll fork a subshell, but if the $() is a builtin, it won't exec. (My built-in dictionary says: "spawn"=="fork+exec"; sorry if that disagrees with yours.) That being said, "echo $((1 + 2 + $((3 + 4))))" will not even fork. -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de - - Prunes give you a run for your money.