[Omake] "exit" calls now propagate too far.
Aleksey Nogin
anogin at hrl.com
Mon Jun 25 15:57:18 PDT 2007
It used to be the case that using "exit" from a Shell alias would only
exit from that alias, but now it propagates across the alias boundaries.
This was caused by the fix to the "cd under Shell aliases" problem...
Note that the clean solution to this might be slightly problematic as
"exit" is itself a shell alias, but, contrary to all other cases, the
exit() call inside it it is intended to kill the parent, not the exit
alias itself.
One possible solution would be:
1. Introduce a new ExitParentException in addition to ExitException
2. Omake_shell_job.create_apply_top:
a. catch ExitException and turn it into an appropriate ExitCode value
b. catch an ExitParentException, re-raising ExitException instead
3. exit() _function_ would raise ExitException as before.
4. Shell.exit alias would raise ExitParentException, instead of calling
the exit() function as it did before.
Jason, what do you think?
Aleksey
--
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
-------------- next part --------------
An embedded message was scrubbed...
From: nogin at metaprl.org (Aleksey Nogin)
Subject: [Omake] SVN Commit: OMake Build System [0.9.8.x] (Rev. 11123)
Date: Mon, 25 Jun 2007 15:42:51 -0700
Size: 2679
Url: http://lists.metaprl.org/pipermail/omake-devel/attachments/20070625/b6da4378/OMakeBuildSystem0.9.8.xRev.mht
More information about the OMake-Devel
mailing list