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