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