t7800: avoid arithmetic expansion notation
The construct "var=$(( something ..." is interpreted by some shells as arithmetic expansion, even when it clearly is not, e.g. var=$((foo; bar) | baz) Avoid the issue by giving an extra SP to help the parser, i.e. var=$( (foo; bar) | baz ) Noticed by Michael J Gruber. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Oct 14, 2011 at 11:07 UTC
15a31e78852f4ede5335552875006daeedfc3aa7
1 file changed
+2
-2
t/t7800-difftool.sh
+2
-2
@@ -289,7 +289,7 @@ test_expect_success PERL 'setup with 2 files different' '
289
'
290
291
test_expect_success PERL 'say no to the first file' '
292
- diff=$((echo n; echo) | git difftool -x cat branch) &&
292
+ diff=$( (echo n; echo) | git difftool -x cat branch ) &&
293
294
echo "$diff" | stdin_contains m2 &&
295
echo "$diff" | stdin_contains br2 &&
@@ -298,7 +298,7 @@ test_expect_success PERL 'say no to the first file' '
298
'
299
300
test_expect_success PERL 'say no to the second file' '
301
- diff=$((echo; echo n) | git difftool -x cat branch) &&
301
+ diff=$( (echo; echo n) | git difftool -x cat branch ) &&
302
303
echo "$diff" | stdin_contains master &&
304
echo "$diff" | stdin_contains branch &&