1 2 3 4
# $FreeBSD: releng/12.0/bin/sh/tests/execution/fork3.0 220978 2011-04-23 22:28:56Z jilles $ result=$(${SH} -c 'f() { ps -p $$ -o comm=; }; f') test "$result" = "ps"