You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bash -c not picking up the regular environment #1404
On Linux I often do bash -l -c <command>. -l gives you a login shell, which runs all of your dotfiles and sets up the environment properly. I haven't tried this with bash.exe, but it might be worth a try?
Activity
benhillis commentedon Nov 21, 2016
This is because when /bin/bash -c is run it does not process the bashrc or profile files. You will have to use the full path to go.
k1nkreet commentedon Nov 22, 2016
The only way i found, is writing sh-scripts wrappers for commands I need, which exports PATH and run command I need.
aseering commentedon Nov 22, 2016
On Linux I often do
bash -l -c <command>.-lgives you a login shell, which runs all of your dotfiles and sets up the environment properly. I haven't tried this withbash.exe, but it might be worth a try?treeder commentedon Nov 23, 2016
Adam Seering (@aseering) doesn't seem to work, same thing happens.