Skip to content

Commit 54ea72f

Browse files
committed
Merge branch 'sg/test-bash-version-fix'
* sg/test-bash-version-fix: test-lib: check Bash version for '-x' without using shell arrays
2 parents 5d826e9 + 5826b7b commit 54ea72f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/test-lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@ do
323323
# this test is marked as such, and ignore '-x' if it
324324
# isn't executed with a suitable Bash version.
325325
if test -z "$test_untraceable" || {
326-
test -n "$BASH_VERSION" && {
326+
test -n "$BASH_VERSION" && eval '
327327
test ${BASH_VERSINFO[0]} -gt 4 || {
328328
test ${BASH_VERSINFO[0]} -eq 4 &&
329329
test ${BASH_VERSINFO[1]} -ge 1
330330
}
331-
}
331+
'
332332
}
333333
then
334334
trace=t

0 commit comments

Comments
 (0)