]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/expansion/cmdsubst8.0
shell_cmds-198.tar.gz
[apple/shell_cmds.git] / sh / tests / expansion / cmdsubst8.0
1 # $FreeBSD$
2 # Not required by POSIX (although referenced in a non-normative section),
3 # but possibly useful.
4
5 : hi there &
6 p=$!
7 q=$(jobs -l $p)
8
9 # Change tabs to spaces.
10 set -f
11 set -- $q
12 r="$*"
13
14 case $r in
15 *" $p "*) ;;
16 *) echo Pid missing; exit 3 ;;
17 esac