Changes by: Aleksey Nogin (nogin at metaprl.org)
Date: 2007-06-26 10:30:58 -0700 (Tue, 26 Jun 2007)
Revision: 11135
Log message:
- Made the "exit n" Shell aliases work corrently again (only exit from the
innermost Shell alias, not kill the whole shell session, as it started doing
after the rev. 11110 fix to bug #679).
I fixed this by using the ExitParentException idea outlined in
http://lists.metaprl.org/pipermail/omake-devel/2007-June/000528.html
- Pipelines like "(exit 5)" should not print a "Process group exception" error
message; instead they should just return the appropriate exit code.
The fix is simple - just catch the ExitExceptions in appropriate places.
- Pipilines like "false || exit 5" should return the correct error code, not
0. (This was broken in previous versions of OMake as well).
My fix is to have Omake_shell_job.create_job execute the PipeCond pipelines
in the current process. (Added a TODO comment to do the same with the
right-hand-sides of the PipeCompose pipelines).
- Updated the test suite to catch some of the above problems.
Also updated the "omake clean" in the test directory to be a bit more
thorough.