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