Re: [PATCH v8 08/14] commit-graph: implement git commit-graph read
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Apr 15, 2018, 03:26 UTC
- Message-ID
- <CAPig+cSP23Fve_hDnrvK++nz1DxkWy9-QBA58L-1FUoGy9psuA@mail.gmail.com>
- In-Reply-To
- <868t9pl9jo.fsf@gmail.com>
On Sat, Apr 14, 2018 at 6:15 PM, Jakub Narebski <jnareb@gmail.com> wrote:
Show 5 quoted lines
> Derrick Stolee <stolee@gmail.com> writes: >> + NUM_CHUNKS=$((3 + $(echo "$2" | wc -w))) > > I don't know if it is possible to do the above in a portable shell > without using external 'wc' command. Also, isn't $(( ... )) bashism?
$((...)) is POSIX and used heavily in existing Git test scripts.