#!/bin/sh # Assuming that urchin was invoked with `-s bash`, $TEST_SHELL should contain 'bash'. this_shell=$(ps -o pid,comm | sed -n "s/^ *$$//p" | cut -d\ -f2) echo "Running shell: $this_shell" echo "\$TEST_SHELL: $TEST_SHELL" echo "$TEST_SHELL" | grep .special-shell