freebsd-dev/tools/regression/bin/sh/execution/fork1.0
Jilles Tjoelker 1251149b3c Add tests for r194127 and r194128.
Approved by:	ed (mentor)
2009-06-14 16:21:51 +00:00

8 lines
153 B
Plaintext

# $FreeBSD$
result=$(sh -c 'ps -p $$ -o comm=')
test "$result" = "ps" || exit 1
result=$(sh -c 'ps -p $$ -o comm=; :')
test "$result" = "sh" || exit 1