Closed
Bug 1262249
Opened 10 years ago
Closed 9 years ago
.bash_profile is executed twice
Categories
(Firefox Build System :: MozillaBuild, task)
Firefox Build System
MozillaBuild
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jgilbert, Assigned: RyanVM)
References
Details
I noticed this when adding "eval ssh-agent" and ssh-add to my .bash_profile, and found that it ran twice.
I found that it's called once in /msys/etc/profile.h/profile-homedir.sh, and commented that out. This seems to work.
After trying this, I greped:
mozilla-win-199981@jgilbert-mbp /c/mozilla-build-2-2-0
$ grep -nr '[.]bash_profile' ./msys
Binary file ./msys/bin/bash.exe matches
Binary file ./msys/bin/sh.exe matches
./msys/etc/profile.d/profile-homedir.sh:8:#if test -f "$HOME/.bash_profile"; then
./msys/etc/profile.d/profile-homedir.sh:9:# . "$HOME/.bash_profile"
Possibly it's being run by one of bash.exe or sh.exe as well?
| Assignee | ||
Comment 1•9 years ago
|
||
start-shell.bat calls bash with the --login flag, which loads .bash_profile per the docs I've found on it. I'll remove the extraneous one from profile-homedir.sh.
Assignee: nobody → ryanvm
Blocks: MozillaBuild3.0
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/mozilla-build/rev/28c0512ff26b
Remove the unnecessary call to .bash_profile in profile-homedir.sh.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: mozilla.org → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•