urchin/tests/Cross-shell test support/.test-run-by-specified-shell/With -s, a shebang-less tes...

11 lines
242 B
Plaintext
Executable File

# By design, this file has no shebang line.
# 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' ]