author | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Oct 2011 18:07:26 +0000 (11:07 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Oct 2011 18:11:30 +0000 (11:11 -0700) | ||
commit | 15a31e78852f4ede5335552875006daeedfc3aa7 | |
tree | c02cf827900b476d7a1862903600e53fee550d2e | tree | snapshot |
parent | ba959de165c6fc0d08d851894a98778e739aafc9 | commit | diff |
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>
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>
t/t7800-difftool.sh | diff | blob | history |