xref: /freebsd/bin/sh/tests/builtins/jobid2.0 (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
1# $FreeBSD$
2
3: &
4p1=$(jobid)
5p2=$(jobid --)
6p3=$(jobid %+)
7p4=$(jobid -- %+)
8[ "${p1:?}" = "${p2:?}" ] && [ "${p2:?}" = "${p3:?}" ] &&
9[ "${p3:?}" = "${p4:?}" ] && [ "${p4:?}" = "${p1:?}" ]
10