I have tried every combination and permutation of the commands on this page and none of them work.
With the -l or -t options, it just puts me into a terminal session.
None of these do that.
Original Message:
Sent: 1/26/2023 4:08:00 PM
From: Alexander Klochkov
Subject: RE: Newest Bash (GNU bash, version 5.1.0(1)-release (s390x-ibm-zos-gnu) does not call bashrc
HI Mark Shackelford,
Is this not your case?
https://superuser.com/questions/306530/run-remote-ssh-command-with-full-login-shell
Thanks,
Alex
------------------------------
Alexander Klochkov
QA
Rocket Internal - All Brands
Vilnius LT
------------------------------
Original Message:
Sent: 01-26-2023 08:25
From: Mark Shackelford
Subject: Newest Bash (GNU bash, version 5.1.0(1)-release (s390x-ibm-zos-gnu) does not call bashrc
Ok, working as designed. ☹
How do I get the PATH set if no profiles get invoked?
That just doesn't seem right.
Mark
Original Message:
Sent: 1/24/2023 9:21:00 AM
From: Tatiana Balaburkina
Subject: RE: Newest Bash (GNU bash, version 5.1.0(1)-release (s390x-ibm-zos-gnu) does not call bashrc
Hi Mark,
I have compared Bash 4.3 and Bash 5 behavior on z/OS and Linux. Only Bash 4.3 for z/OS invokes .bashrc in non-interactive mode and it seems like Bash 4.3 on Linux too, however Bash 5 on both platforms doesn't .bashrc. This behavior is in accordance with the documentation, therefore we don't consider that Bash 5 on z/OS has a bug.
------------------------------
Tatiana Balaburkina
Engineering Manager
Rocket Internal - All Brands
Original Message:
Sent: 01-23-2023 07:09
From: Mark Shackelford
Subject: Newest Bash (GNU bash, version 5.1.0(1)-release (s390x-ibm-zos-gnu) does not call bashrc
Interfactively, bash invokes .profile.
Non interactive which is where I am having the problem, it does not invoke .profile or .bashrc or bash_profile or bash_login. Tried them all
5.1 does not work, the old 4.3 works everytime with no other changes.
5.1 seems to be broke.
------------------------------
Mark Shackelford
Systems Programmer
Dynatrace
Detroit MS US
Original Message:
Sent: 01-20-2023 09:48
From: Alexander Klochkov
Subject: Newest Bash (GNU bash, version 5.1.0(1)-release (s390x-ibm-zos-gnu) does not call bashrc
Hi Mark Shackelford,
If bash is an interactive login shell it's expected behavior. You need to use ~/.bash_profile for this purpose.
You can simply use these lines for ~/.bash_profile
if [ -f ~/.bashrc ]; then . ~/.bashrcfi
Some details:
https://linuxize.com/post/bashrc-vs-bash-profile/
https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html#Bash-Startup-Files
Thanks,
Alexander
------------------------------
Alexander Klochkov
QA
Rocket Internal - All Brands
Vilnius LT
Original Message:
Sent: 01-20-2023 09:19
From: Mark Shackelford
Subject: Newest Bash (GNU bash, version 5.1.0(1)-release (s390x-ibm-zos-gnu) does not call bashrc
We have been using bash GNU bash, version 4.3.46(51)-release (i370-ibm-openedition) which is pretty old.
Just updated to all the new Opensource Rocket tools and the new bash (5.1.0) does not call the .bashrc (or bashrc) anymore.
Switch back to the old version (4.3.46) and it works fine with no other changes.
Any ideas on why I am having this issue?
Potential solutions?
Thanks
Mark Shackelford
------------------------------
Mark Shackelford
Systems Programmer
Dynatrace
Detroit MS US
------------------------------