Hello Hyder,
I saved and restored the SHELL environment variable to resolve the issue. There is an update that will be released to permanently fix the issue.
------------------------------
Paul Stewart
------------------------------
Original Message:
Sent: Thu February 23, 2023 01:28 PM
From: Hyder Naqvi
Subject: envsetup script corrupts SHELL environment variable
Hello Paul,
Did deleting export SHELL=$0 resolve your issue?
------------------------------
Hyder Naqvi
Original Message:
Sent: Tue February 21, 2023 05:30 PM
From: Bill O'Farrell
Subject: envsetup script corrupts SHELL environment variable
Hi. This may occur if your login shell is set to bash. Suggestion: there is a single line in the environment setup script: "export SHELL=$0" that can be deleted. If you delete this line, does it solve the problem?
------------------------------
Bill O'Farrell
Team Lead, Go on z/OS
Original Message:
Sent: Mon February 20, 2023 09:52 PM
From: Paul Stewart
Subject: envsetup script corrupts SHELL environment variable
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
------------------------------