Re: [PATCH] Avoid using dc in git-count-objects
- From
Matthias Urlichs <smurf@smurf.noris.de>
- Date
- Oct 27, 2005, 08:50 UTC
- Message-ID
- <pan.2005.10.27.08.49.59.849081@smurf.noris.de>
- In-Reply-To
- <20051026083658.GE30889@pasky.or.cz>
Hi, Petr Baudis wrote:
Show 6 quoted lines
> Dear diary, on Wed, Oct 26, 2005 at 10:33:33AM CEST, I got a letter > where Johannes Schindelin <Johannes.Schindelin@gmx.de> 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.