#!/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' ]