For some reason, some garbage is prepended to my PATH variable in emacs.
- Testing from eshell: (M+x eshell):
~/projects/rust/logentries-parser/src $ echo $PATH bash: cannot set terminal process group (-1): Inappropriate ioctl for devicebash: no job control in this shell:/home/renat/.cargo/bin:/home/renat/lib/google-cloud-sdk/bin: ... other stuff
- Testing from shell: (M+x shell):
renat@hp-envy ~/projects/rust/logentries-parser/src $ echo $PATH :/home/renat/.cargo/bin:/home/renat/lib/google-cloud-sdk/bin: ... other stuff
- Testing using the getenv: (getenv RET PATH):
bash: cannot set terminal process group (-1): Inappropriate ioctl for devicebash: no job control in this shell:/home/renat/.cargo/bin:/home/renat/lib/google-cloud-sdk/bin: ... other stuff
Did anybody encounter anything similar?
Thanks
A new update:
When I'm starting emacs with a -nw switch - it works fine and PATH is not polluted.
emacs -Q? You should also check your .bashrc and .bash_profile files to see if you're doing anything strange to your PATH in there. Also, check if you have an ~/.emacs.d/init_bash.sh file and what it contains.init_bash.sh