]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh: Unify EXERROR and EXEXEC
authorjilles <jilles@FreeBSD.org>
Fri, 9 Nov 2018 14:58:24 +0000 (14:58 +0000)
committerjilles <jilles@FreeBSD.org>
Fri, 9 Nov 2018 14:58:24 +0000 (14:58 +0000)
commit4586c042ebd0030c451d6a95d2679a227cfbe13c
tree3ddcebcb55d574d98366e79e3aecfe0469ceed13
parentb8dfd027887fbbf30986421f2b49adc5edf5861b
sh: Unify EXERROR and EXEXEC

The difference between EXERROR and EXEXEC was that EXEXEC passed along
exitstatus and EXERROR set exitstatus to 2 in the handling code.

By changing the places that raised EXERROR to set exitstatus to 2, the
handling of EXERROR and EXEXEC becomes the same.
bin/sh/TOUR
bin/sh/error.c
bin/sh/error.h
bin/sh/eval.c
bin/sh/exec.c
bin/sh/jobs.c
bin/sh/main.c