9 lines
191 B
Text
9 lines
191 B
Text
|
|
shname=${SH%% *}
|
|
shname=${shname##*/}
|
|
|
|
result=$(${SH} -c 'ps -p $$ -o comm=')
|
|
test "$result" = "ps" || exit 1
|
|
|
|
result=$(${SH} -c 'ps -p $$ -o comm=; :')
|
|
test "$result" = "$shname" || exit 1
|