xref: /freebsd/bin/sh/tests/expansion/cmdsubst8.0 (revision 7ef62cebc2f965b0f640263e179276928885e33d)
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