When bash is set as the default shell the envsetup script corrupts the SHELL environment variable. Before running the envsetup script the SHELL environment variable is set to the fully qualified path to the bash executable. However, after envsetup is run in the .bash_profile the SHELL environment variable is set to -bash. This then causes other scripts that rely on a valid SHELL environment variable to fail.
What is the reason for the envsetup script modifying the SHELL environment variable?
------------------------------
Paul Stewart
------------------------------