]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/expansion/cmdsubst8.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / expansion / cmdsubst8.0
1 # $FreeBSD: head/bin/sh/tests/expansion/cmdsubst8.0 216819 2010-12-30 15:04:59Z jilles $
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