From: Theodore Ts'o (tytso@ATHENA.MIT.EDU)
Date: 08/29/92


From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
Subject: BUG with bash and Linux-0.97 pl 2
Date: Sat, 29 Aug 1992 05:40:16 GMT

I just recently upgraded to Linux 0.97 patchlevel 2, and after I did, I
found that xinit wasn't working anymore. I finally traced it down to my
.xinitrc file, and to the following specific bug.

If you type the following at bash under 0.97 PL2:

unset SHLVL
exec /bin/sh

The existing shell will core dump without managing to exec the prgram
you ask it to exec.

If you take the same bash binary and run under 0.97 PL 1, the shell will
*not* core dump and exec the request program instead. (This is the
correct behavior).

This behavior can be duplicated using either the MCC 0.96c /bin/bash, or
the /bin/bash on the 0.97 rootimage disk.

I haven't been able to trace it down any further, but maybe I'll have
luck later after I compile my own version of bash and after I get a
working copy of gdb under 0.97PL2.

                                                        - Ted