Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] t7800: avoid arithmetic expansion notation

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:15

Junio C Hamano [off-list ref] writes:
Michael J Gruber [off-list ref] writes:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help