>bash 1.14.3, but you would have the same problem on any version of
>Linux running bash 1.14.3.
or you could recompile with the bash bug fixed. I'm betting it is the
"bash -c "exit 2"" returns 127 no matter what bug. Here's the fix.
jim
-----------------------------------------------------------------
--- ./shell.c.old Sat Apr 8 22:20:43 1995
+++ ./shell.c Sat Apr 8 22:22:11 1995
@@ -1034,7 +1034,7 @@
/* Some kind of throw to top_level has occured. */
case FORCE_EOF:
- case EXITPROG:
return last_command_exit_value = 127;
+ case EXITPROG:
+ return last_command_exit_value;
case DISCARD:
return last_command_exit_value = 1;
default:
-- ------------------------------------------------------------- James LewisMoss University of South Carolina |Blessed Be! moss@cs.scarolina.edu |Linux is cool! ------------------------------------------------------------- "Argue for your limitations, and you get to keep them." Richard Bach