From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 22 21:16:07 2017 Received: (at submit) by debbugs.gnu.org; 23 Feb 2017 02:16:07 +0000 Received: from localhost ([127.0.0.1]:51756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgiwx-0001m9-HJ for submit@debbugs.gnu.org; Wed, 22 Feb 2017 21:16:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgiwu-0001lP-9E for submit@debbugs.gnu.org; Wed, 22 Feb 2017 21:16:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgiwo-0001KR-3h for submit@debbugs.gnu.org; Wed, 22 Feb 2017 21:15:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49768) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgiwo-0001KN-0P for submit@debbugs.gnu.org; Wed, 22 Feb 2017 21:15:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgiwm-0001um-Jt for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:15:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgiwh-0001JY-Rf for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:15:56 -0500 Received: from us2-ob4-6.mailhostbox.com ([208.91.199.215]:42215) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgiwh-0001JP-IF for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:15:51 -0500 Received: from rose (unknown [117.202.224.228]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: sadiq@sadiqpk.org) by us2.outbound.mailhostbox.com (Postfix) with ESMTPSA id C9BAC1C1BE1 for ; Thu, 23 Feb 2017 02:15:38 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org; s=20160628; t=1487816140; bh=LDL0LnrxbP92lAxO/YwcOLIXs6hwYQeEA9HCv8vWUi0=; h=From:To:Subject:Date; b=WDz6IS3r4CAQGsnn2ySKilQzTMfwpAoAYVT0aL3ZA8juokPMfsgpE2f/jlW03QbxG 8kPZkxjrBa+ZqvpqRl/LzOHM6ENGr92TOIlqXd27jVnhkMAKUD81DEBxspuE+xrGLc 3qGiMJgq5TpYD5llrmGWteBVmsTwE3N86cSuWuu0= From: Mohammed Sadiq To: bug-gnu-emacs@gnu.org Subject: 26.0.50; gdb doesn't respect '$INSIDE_EMACS' shell variables Date: Thu, 23 Feb 2017 07:45:10 +0530 Message-ID: <87poi9fya9.fsf@rose> MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=bdwbaKHB c=1 sm=1 tr=0 a=Iop4HlxToXRU68wBsVpOAA==:117 a=Iop4HlxToXRU68wBsVpOAA==:17 a=wyribW1-wWrB7Rt9apoA:9 a=W6bq_oYnIzm8xYgf:21 a=YoQzt8mwUspm6Bsp:21 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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. Instead, if I run emacs this way: foo='FOO' emacs and run gdb, the variable is respected The variable I was trying to set was G_DEBUG='fatal-criticals' Thanks In GNU Emacs 26.0.50.3 (x86_64-pc-linux-gnu, GTK+ Version 3.22.6) of 2017-02-05 built on rose Repository revision: 148100d98319499f0ac6f57b8be08cbd14884a5c Windowing system distributor 'The X.Org Foundation', version 11.0.11901000 System Description: Debian GNU/Linux 9.0 (stretch) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 LIBSYSTEMD Important settings: value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 97836 9217) (symbols 48 20259 1) (miscs 40 420 154) (strings 32 18154 4104) (string-bytes 1 587387) (vectors 16 14062) (vector-slots 8 469511 5295) (floats 8 183 66) (intervals 56 216 0) (buffers 976 12)) From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 22 21:44:59 2017 Received: (at 25844) by debbugs.gnu.org; 23 Feb 2017 02:44:59 +0000 Received: from localhost ([127.0.0.1]:51780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgjOs-0004AD-WD for submit@debbugs.gnu.org; Wed, 22 Feb 2017 21:44:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgjOr-00049z-8P for 25844@debbugs.gnu.org; Wed, 22 Feb 2017 21:44:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgjOl-00085D-Aw for 25844@debbugs.gnu.org; Wed, 22 Feb 2017 21:44:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgjOg-0007zx-1E; Wed, 22 Feb 2017 21:44:46 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cgjOb-0001d7-88; Wed, 22 Feb 2017 21:44:41 -0500 From: Glenn Morris To: Mohammed Sadiq Subject: Re: bug#25844: 26.0.50; gdb doesn't respect '$INSIDE_EMACS' shell variables References: <87poi9fya9.fsf@rose> X-Spook: AGT. AMME Mexicles NBIC Electric AK-47 bemd IED Narcos X-Ran: 4PAp\+w9O)NeoBMtUA[3|=+zS8|}j42kyKbJy*P7.)[vNV}5fR{G~p,Dq?`l'K%p-Cdn&" X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 22 Feb 2017 21:44:41 -0500 In-Reply-To: <87poi9fya9.fsf@rose> (Mohammed Sadiq's message of "Thu, 23 Feb 2017 07:45:10 +0530") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25844 Cc: 25844@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 13:28:53 2017 Received: (at control) by debbugs.gnu.org; 28 Feb 2017 18:28:53 +0000 Received: from localhost ([127.0.0.1]:60533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cimW5-0005zX-2V for submit@debbugs.gnu.org; Tue, 28 Feb 2017 13:28:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cimW3-0005zL-R3 for control@debbugs.gnu.org; Tue, 28 Feb 2017 13:28:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cimVx-0006OP-UB for control@debbugs.gnu.org; Tue, 28 Feb 2017 13:28:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cimVx-0006OL-Rp for control@debbugs.gnu.org; Tue, 28 Feb 2017 13:28:45 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cimVx-0005m1-ES for control@debbugs.gnu.org; Tue, 28 Feb 2017 13:28:45 -0500 Subject: control message for bug 25701 25760 25766 25844 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 28 Feb 2017 13:28:45 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 25701 close 25760 close 25766 close 25844 From unknown Fri Aug 15 15:59:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 29 Mar 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator