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