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