diff options
author | jilles <jilles@FreeBSD.org> | 2013-08-16 13:56:43 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-08-16 13:56:43 +0000 |
commit | c433419763665f84075930e6318012aec9a984e8 (patch) | |
tree | f78109c5fa749dbfadfe19c63d325acb7746a0ef /tools/regression | |
parent | b6d179c1400c0d392869d1b07a39e00f552072cc (diff) | |
download | FreeBSD-src-c433419763665f84075930e6318012aec9a984e8.zip FreeBSD-src-c433419763665f84075930e6318012aec9a984e8.tar.gz |
sh: Recognize "--" as end of options in bg/fg/jobid builtins.
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/bin/sh/builtins/jobid2.0 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/jobid2.0 b/tools/regression/bin/sh/builtins/jobid2.0 new file mode 100644 index 0000000..101831a --- /dev/null +++ b/tools/regression/bin/sh/builtins/jobid2.0 @@ -0,0 +1,9 @@ +# $FreeBSD$ + +: & +p1=$(jobid) +p2=$(jobid --) +p3=$(jobid %+) +p4=$(jobid -- %+) +[ "${p1:?}" = "${p2:?}" ] && [ "${p2:?}" = "${p3:?}" ] && +[ "${p3:?}" = "${p4:?}" ] && [ "${p4:?}" = "${p1:?}" ] |