urchin/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a sh test script should be invoked with the specified shell.
Thomas Levine 7267239313 start moving cross-shell testing tests
and also make them more cross-shell test style
2016-02-28 22:23:47 +00:00

10 lines
230 B
Bash
Executable File

#!/bin/sh
# Assuming that urchin was invoked with `-s bash`, this script should be being run with bash.
this_shell=$(ps -o comm= -p $$ && :)
echo "Running shell: $this_shell"
[ "$(basename "$this_shell")" = '.special-shell' ]