result=$(${SH} -c 'f() { ps -p $$ -o comm=; }; f') test "$result" = "ps"