Re: WARNING - Python 1.2 and Linux

James LewisMoss (moss@usceast.cs.scarolina.edu)
16 Apr 1995 04:32:16 -0400

gsipe@rebel.atl.ga.us (George M. Sipe) writes:

>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