]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tools/regression/bin/sh/builtins/jobid2.0
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / tools / regression / bin / sh / builtins / jobid2.0
1 # $FreeBSD$
2
3 : &
4 p1=$(jobid)
5 p2=$(jobid --)
6 p3=$(jobid %+)
7 p4=$(jobid -- %+)
8 [ "${p1:?}" = "${p2:?}" ] && [ "${p2:?}" = "${p3:?}" ] &&
9 [ "${p3:?}" = "${p4:?}" ] && [ "${p4:?}" = "${p1:?}" ]