f8d98d9978
and I updated the documentation already because this new way seems easier to think about
11 lines
274 B
Bash
Executable File
11 lines
274 B
Bash
Executable File
#!/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
|