git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t7800: avoid arithmetic expansion notation

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 14, 2011, 19:00 UTC
Message-ID
<7vfwivz9dd.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7v4nzb1mjd.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Michael J Gruber <git@drmicha.warpmail.net> 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.
Previous: Junio C Hamano
Message 3 of 3 in “t7800: avoid arithmetic expansion notation”
  1. t7800: avoid arithmetic expansion notationMichael J Gruber, Oct 14, 2011
  2. Junio C HamanoOct 14, 2011
  3. Junio C HamanoOct 14, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.