This PR adapts test/blackbox-test/test.sh to bash 3.x.
The motivation is that Mac 10.13 only has bash 3.2, but the original test.sh uses functions introduced by bash 4.x.
Description
By default, Mac 10.13 only has bash 3.2.
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G7024
$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright (C) 2007 Free Software Foundation, Inc.
Since bash 3.x does not allow the syntax &>> introduced by bash 4.0,
this PR rewrites the fragment of the code that uses &>> in the old way.
(c.f: http://tiswww.case.edu/php/chet/bash/NEWS)
Furthermore, this PR adds a comment to explain why we use ... || true.
Problem
This PR adapts
test/blackbox-test/test.sh
to bash 3.x. The motivation is that Mac 10.13 only has bash 3.2, but the originaltest.sh
uses functions introduced by bash 4.x.Description
By default, Mac 10.13 only has bash 3.2.
Since bash 3.x does not allow the syntax
&>>
introduced by bash 4.0, this PR rewrites the fragment of the code that uses&>>
in the old way. (c.f: http://tiswww.case.edu/php/chet/bash/NEWS)Furthermore, this PR adds a comment to explain why we use
... || true
.