From: Eric Sunshine Date: Sun, 15 Apr 2018 03:26:45 GMT Subject: Re: [PATCH v8 08/14] commit-graph: implement git commit-graph read Message-ID: In-Reply-To: <868t9pl9jo.fsf@gmail.com> On Sat, Apr 14, 2018 at 6:15 PM, Jakub Narebski wrote: > Derrick Stolee 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.