| Age | Commit message (Collapse) | Author |
|
|
|
This fixes rakitzis/rc issue #40.
Both cases suffered from a misconception of statprint() in which the necessary
check for -e happens. The checked status value gets passed to statprint() as an
argument but the corresponding value passed to rc_exit() in case the status is
non-zero comes from getstatus(), which requires that the checked status is
written to statuses[] first. For pipelines this happened in the wrong order and
for backquotes the status value was not put into statuses[] at all.
Making statprint() a static helper function prevents this mistake by only
leaving the setstatus family of functions to handle status codes.
|
|
Portability: status.c assumes traditional Unix layout of 0 and 1 exit
statuses in the parent, which is not shared by BeOS. Add mkstatval.c.
|
|
|
|
also, always check that WTERMSIG is in range
|
|
|
|
|
|
|
|
|
|
|
|
|