summary refs log tree commit diff
path: root/bin/1sh/tests/expansion/cmdsubst8.0
blob: b22473d9ceb1fbafa84c624d2ae23102484eeb8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $FreeBSD: releng/12.1/bin/sh/tests/expansion/cmdsubst8.0 216819 2010-12-30 15:04:59Z jilles $
# Not required by POSIX (although referenced in a non-normative section),
# but possibly useful.

: hi there &
p=$!
q=$(jobs -l $p)

# Change tabs to spaces.
set -f
set -- $q
r="$*"

case $r in
*" $p "*) ;;
*) echo Pid missing; exit 3 ;;
esac