1# Shell library sourced instead of ./test-lib.sh by tests that need 2# to run under Bash; primarily intended for tests of the completion 3# script. 4 5iftest -n"$BASH"&&test -z"$POSIXLY_CORRECT";then 6# we are in full-on bash mode 7 true 8eliftype bash >/dev/null 2>&1;then 9# execute in full-on bash mode 10unset POSIXLY_CORRECT 11exec bash "$0""$@" 12else 13echo'1..0 #SKIP skipping bash completion tests; bash not available' 14exit0 15fi 16 17. ./test-lib.sh