urchin/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, a shebang-less test script should be invoked with the specified shell.
Thomas Levine f8d98d9978 update shell cycling logic to match documentation
and I updated the documentation already because this new way seems
easier to think about
2016-02-29 12:29:49 +00:00

11 lines
296 B
Plaintext
Executable File

# By design, this file has no shebang line.
set -e
# Assuming that urchin was invoked with `-s bash`, this script should be being run with bash.
this_shell="$(ps -o pid,comm | sed -n "s/^ *$$//p" | cut -d\ -f2)"
echo "Running shell: $this_shell"
basename "$this_shell" | grep .special-shell