From: René J. <rvj...@xs...> - 2022-03-05 16:48:51
|
No, I thinks that is definitely suboptimal. Why don’t we throw a netrexx.lang.AddressEnvironmentException, that the user can catch if they want to? René. > On 5 Mar 2022, at 16:24, Marc Remes <re...@gm...> wrote: > > > The latest commit exits the NetRexx program when an exception is thrown during ADDRESS invocation. > Such exception can occur when the specified environment is not executable, or when a specified stream is unusable. > The exitcode is 9. > Note, "address bash 'nonexistingcommand'" will not exit, instead processing will complete and say 'command not found'. > > Personally I don't find such hard exit optimal. > Another option is not to exit, and reset the special variable RC to undefined 'RC', where the calling user can find such exceptional condition. > Both options could be coded and controlled by a new ADDRESSEXIT option. > > Your views? > > This code now also always correctly handles stderr. > > Marc > _______________________________________________ > Netrexx-develop mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/netrexx-develop |