urchin/tests.old/Cross-shell test support/.test-run-by-specified-shell/With -s, a sh test script should be invoked with the specified shell.
2016-02-28 18:24:14 +00:00

11 lines
208 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"
[ "$this_shell" = 'bash' ]