From: Junio C Hamano Date: Fri, 14 Oct 2011 19:00:30 GMT Subject: Re: [PATCH] t7800: avoid arithmetic expansion notation Message-ID: <7vfwivz9dd.fsf@alter.siamese.dyndns.org> In-Reply-To: <7v4nzb1mjd.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > Michael J Gruber writes: > >> ba959de (git-difftool: allow skipping file by typing 'n' at prompt, 2011-10-08) >> introduced shell code like >> >> $((foo; bar) | baz) >> >> which some shells (e.g. bash, dash) interpret as an unfinished arithmetic >> evaluation $(( expr )). > > Ahh, thanks, I should have caught this. I recall I rewrote a similar one > to $( (command; command) | command ) more than once before. Forgot to mention that I love to see the issues on topics discovered and corrected before they are still cooking in 'next', like this ;-) Thanks all.