adamant-kite-43734
10/07/2022, 4:07 PMfast-garage-66093
10/07/2022, 4:10 PMdiagnostics.log
file?sticky-summer-13450
10/07/2022, 4:13 PMfast-garage-66093
10/07/2022, 4:15 PMfast-garage-66093
10/07/2022, 4:16 PMsticky-summer-13450
10/07/2022, 4:16 PMfast-garage-66093
10/07/2022, 4:18 PMPATH=/usr/bin:/bin:/usr/sbin:/sbin bash -l -c 'echo $PATH'
sticky-summer-13450
10/07/2022, 4:19 PM$ PATH=/usr/bin:/bin:/usr/sbin:/sbin bash -l -c 'echo $PATH'
/home/mdsh/.local/bin:/home/mdsh/bin:/usr/bin:/bin:/usr/sbin:/sbin:/snap/bin
fast-garage-66093
10/07/2022, 4:20 PM~/.rd/bin
in it. But if you open a new terminal window to create a new shell, it does?sticky-summer-13450
10/07/2022, 4:21 PMsticky-summer-13450
10/07/2022, 4:21 PMfast-garage-66093
10/07/2022, 4:24 PM~/.bash_profile
look like; does it have the PATH
logic too?sticky-summer-13450
10/07/2022, 4:27 PM~/.profile
(where I manipulate $PATH), and a ~/.bashrc
(where RD put the $PATH manipulation code) but no ~/.bash_profile
sticky-summer-13450
10/07/2022, 4:28 PM~/.profile
sources ~/.bashrc
when a BASH env var existsfast-garage-66093
10/07/2022, 4:28 PM~/.bashrc
if it doesn't exist. The problem is that .bashrc
is not read by a login shell, and the diagnostic always runs as a login shell.sticky-summer-13450
10/07/2022, 4:30 PM### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/home/mdsh/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)
That ONLY exists in ~/.bashrc
which was created by Ubuntu many years ago when this machine was first installed.fast-garage-66093
10/07/2022, 4:30 PM~/.bash_profile
as wellfast-garage-66093
10/07/2022, 4:31 PMtouch ~/.bash_profile
and re-run the diagnostics? You can delete it again afterwardssticky-summer-13450
10/07/2022, 4:33 PMfast-garage-66093
10/07/2022, 4:41 PMPATH
management to "Manual", click "Apply", and then switch it back to "Automatic" (or just restart RD). Then re-run diagnostics and let me know if this one now passessticky-summer-13450
10/07/2022, 4:46 PMMANAGED BY RANCHER DESKTOP
stanza to ~/.bash_profile
and the tests pass. But then ~/.bashrc
is not sourced, so I'd want to copy the contents of ~/.profile
into ~/.bash_profile
in order to source various files...
Shells are hard πfast-garage-66093
10/07/2022, 4:47 PM.bash_profile
and that you are on Linux)?sticky-summer-13450
10/07/2022, 5:01 PMfast-garage-66093
10/07/2022, 5:02 PMsticky-summer-13450
10/14/2022, 8:25 AMfast-garage-66093
10/14/2022, 3:21 PM