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