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

Re: [PATCH 14/15] git-am.sh: replace using expr for arithmetic operations with the equivalent shell builtin

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 4, 2016, 12:01 UTC
Message-ID
<alpine.DEB.2.20.1602041258400.2964@virtualbox>
In-Reply-To
<CA+EOSB=ky8E7J0Fa26DjgT=5-X9N09=4kRbGvWZo5K7PhwS7hg@mail.gmail.com>
Hi Elia,
On Thu, 4 Feb 2016, Elia Pinto wrote:
Show 11 quoted lines
> 2016-02-04 12:14 GMT+01:00 Johannes Schindelin <Johannes.Schindelin@gmx.de>:
> > Hi Elia,
> >
> > On Thu, 4 Feb 2016, Elia Pinto wrote:
> >
> >> -                     this=$(expr "$this" + 1)
> >> +                     this=$(( "$this" + 1 ))
> >
> > Why the funny spaces? We do not do that anywhere in the existing code
> > except in three places (2x filter-branch, 1x rebase--interactive, all
> > three *not* my fault) and in some tests.

I actually noticed more places now, and will send a quick fixer-upper patch series in a few seconds, that we can hopefully apply before your series?

Thanks, Dscho

Previous: Elia PintoNext: Junio C Hamano
Message 5 of 9 in “git-am.sh: replace using expr for arithmetic operations with the equivalent shell builtin”
  1. 14/15 git-am.sh: replace using expr for arithmetic operations with the equivalent shell builtinElia Pinto, Feb 4, 2016
  2. 15/15 t4032-diff-inter-hunk-context.sh: replace using expr for arithmetic operations with the equivalent shell builtinElia Pinto, Feb 4, 2016
  3. Johannes SchindelinFeb 4, 2016
  4. Elia PintoFeb 4, 2016
  5. Johannes SchindelinFeb 4, 2016
  6. Junio C HamanoFeb 4, 2016
  7. Eric SunshineFeb 4, 2016
  8. Elia PintoFeb 5, 2016
  9. Stefan BellerFeb 4, 2016

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.