[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25844: 26.0.50; gdb doesn't respect '$INSIDE_EMACS' shell variables
From: |
Glenn Morris |
Subject: |
bug#25844: 26.0.50; gdb doesn't respect '$INSIDE_EMACS' shell variables |
Date: |
Wed, 22 Feb 2017 21:44:41 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Mohammed Sadiq wrote:
> M-x gdb doesn't seem to respect variables set with '$INSIDE_EMACS'
>
> Ie, my bashrc has some variables set as:
> if [ '$INSIDE_EMACS' ]
> foo='FOO'
> bar='BAR'
> fi
>
> And when I run M-x gdb, it seems not to work.
When Emacs runs a debugger, it does not use a shell to do so,
so your .bashrc isn't consulted. In general external processes that
Emacs starts don't go via a shell unless they really need to.
I don't think this is an Emacs bug.