ACK - works as advertised and propagates the script return code correctly<br>I'm sorry for the delay - I've pushed this now with a minor modification (delExit instead of setting EXIT variable directly):<br>--- a/edit-livecd<br>
+++ b/edit-livecd<br>@@ -127,6 +127,11 @@ addExit() {<br> trap "$EXIT" EXIT HUP TERM INT QUIT<br> }<br> <br>+delExit() {<br>+ EXIT=${EXIT/$@ ; /}<br>+ trap "$EXIT" EXIT HUP TERM INT QUIT<br>
+}<br>
+<br> mnt() {<br> local margs="$1" ; shift<br> local mp="$WDIR/$1"<br>@@ -164,7 +169,7 @@ if [ -n "$CODE" ]; then<br> cd $WDIR/ex<br> addExit "cd -"<br> eval "$CODE"<br>
- EXIT=${EXIT/cd - ;/}<br>+ delExit "cd -"<br> cd -<br> else<br> echo "***"<br><br>Speaking of edit-livecd, David posted few months ago edit-livecd.py - reimplementation in Python which was proposed for inclusion into livecd-tools - we need to restart that thread on livecd list: <a href="https://www.redhat.com/archives/ovirt-devel/2009-September/msg00139.html">https://www.redhat.com/archives/ovirt-devel/2009-September/msg00139.html</a><br>
Abhishek, could you please have a look at that script and gives us your feedback?<br><br>Alan<br><br><br>