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