projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
sh: Sync with FreeBSD:
[dragonfly.git]
/
tools
/
regression
/
bin
/
sh
/
expansion
/
cmdsubst8.0
1
# $FreeBSD: head/tools/regression/bin/sh/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