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