xref: /freebsd/bin/sh/tests/expansion/cmdsubst8.0 (revision 39ee7a7a6bdd1557b1c3532abf60d139798ac88b)
1# $FreeBSD$
2# Not required by POSIX (although referenced in a non-normative section),
3# but possibly useful.
4
5: hi there &
6p=$!
7q=$(jobs -l $p)
8
9# Change tabs to spaces.
10set -f
11set -- $q
12r="$*"
13
14case $r in
15*" $p "*) ;;
16*) echo Pid missing; exit 3 ;;
17esac
18