test: test-lib.sh: use $BASH instead of ${SHELL-sh} to relaunch
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 24 Sep 2016 12:43:27 +0000 (15:43 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 24 Sep 2016 13:10:40 +0000 (10:10 -0300)
commitb57426a43549ac5434c0f793e184f1b0b955f7e0
tree2a031bc5f62d708aed7047928c3a248610917681
parent514a0a6a3bd74c03db6cd9b28edc0a29a8a2441e
test: test-lib.sh: use $BASH instead of ${SHELL-sh} to relaunch

In case of the test script is to be relaunced under valgrind, or --tee
is requested, use the $BASH shell variable to locate the command
interpreter. The $SHELL variable is re-set by non-interactive shells
so in case the shell uses some other shell (e.g. zsh) for interactive
use these bash scripts continue to work.
test/test-lib.sh