Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/lib-bash.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / lib-bash.sh` 19 lines ยท 453 bytes Raw Blame History 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 5 if test -n "$BASH" && test -z "$POSIXLY_CORRECT" 6 then 7 # we are in full-on bash mode 8 true 9 elif type bash >/dev/null 2>&1 10 then 11 # execute in full-on bash mode 12 unset POSIXLY_CORRECT 13 exec bash "$0" "$@" 14 else 15 echo '1..0 #SKIP skipping bash completion tests; bash not available' 16 exit 0 17 fi 18 19 . ./test-lib.sh