Simos wrote:
Regarding printexitvalue, I use
trap '__exit_value_bashrc=$?; if [ $__exit_value_bashrc -ne 0 ]; then
echo "Exit $__exit_value_bashrc"; fi' ERR
so that an exit value is printed when it is other than 0.
That shouldn't be necessary. An exit of 0 is not considered an error,
and so should not trip an ERR trap. Freddy's example should be
sufficient. (WFM with 3.2, anyway.)
--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
ELANG: input is in wrong language (please use English on English lists)