#!/bin/sh # Assuming that urchin was invoked with this, # # TEST_SHELL=$PWD/.special-shell urchin ... # # $TEST_SHELL should contain '.special-shell' echo "\$TEST_SHELL: $TEST_SHELL" basename "$TEST_SHELL" | grep '.special-shell'