I'm posting this after being advised to get other peoples feedback on a bug report on launch pad.<br>
<div id="bug-description">What I'm suggesting is basically something similar to $? in bash to get the
exit status, both for magic functions, and normal programs run through
At the moment there isn't a way of checking if a
magic function successfully did what it was supposed to, and no way of
returning an exit status without it displaying on screen.<br>
example: i wrote a magic to cd to a directory and ls its contents
(cdl), the obvious way would be to use the existing cd command, except
you can't test if its run successfully.<BR>
I know you can use the subprocess or commands module to get exit
codes but its not straight forward and has the disadvantage that you
can't check after the fact if a program exited successfully.<BR></div></div></div></div>
<div id="maincontentsub"><div id="nonportlets"><div class="report"><div id="bug-description">
<br /><hr />"
Upgrade to Internet Explorer 8 Optimised for MSN.
" <a href='http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U' target='_new'>Download Now</a></body>