The script program will try to run the --command parameter with the
login shell, rather than the currently running test shell (bash).
(cherry picked from commit
18c44ca1ea254e9cbceb71171c4e3a4524df6891)
}
color_diagnostics_run_on_pty() {
+ # command uses bash syntax, make sure that script uses the bash shell to run
+ SHELL=$BASH \
script --return --quiet --command "unset GCC_COLORS; CCACHE_DIR='$CCACHE_DIR' ${2:?}" /dev/null </dev/null >"${1:?}"
# script returns early on some platforms (leaving a child process living for