GNU bug report logs - #25844
26.0.50; gdb doesn't respect '$INSIDE_EMACS' shell variables

Previous Next

Package: emacs;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Thu, 23 Feb 2017 02:17:02 UTC

Severity: minor

Tags: notabug

Found in version 26.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 25844 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 25844 <at> debbugs.gnu.org
Subject: Re: bug#25844: 26.0.50;
 gdb doesn't respect '$INSIDE_EMACS' shell variables
Date: Wed, 22 Feb 2017 21:44:41 -0500
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.




This bug report was last modified 8 years and 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.