French translation: copy -> copie.
[git/dscho.git] / t / lib-bash.sh
blob11397f747b9658146a133f5fa65923cc4edfb11f
1 #!/bin/sh
3 # Ensures that tests are run under Bash; primarily intended for running tests
4 # of the completion script.
6 if test -n "$BASH" && test -z "$POSIXLY_CORRECT"; then
7 # we are in full-on bash mode
8 true
9 elif type bash >/dev/null 2>&1; then
10 # execute in full-on bash mode
11 unset POSIXLY_CORRECT
12 exec bash "$0" "$@"
13 else
14 echo '1..0 #SKIP skipping bash completion tests; bash not available'
15 exit 0
18 . ./test-lib.sh