From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 30 07:05:52 2018 Received: (at submit) by debbugs.gnu.org; 30 Aug 2018 11:05:53 +0000 Received: from localhost ([127.0.0.1]:37973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvKls-0006nE-MP for submit@debbugs.gnu.org; Thu, 30 Aug 2018 07:05:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvKlr-0006n0-2E for submit@debbugs.gnu.org; Thu, 30 Aug 2018 07:05:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvKlk-0007kG-M1 for submit@debbugs.gnu.org; Thu, 30 Aug 2018 07:05:45 -0400 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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fvKlk-0007kA-Hv for submit@debbugs.gnu.org; Thu, 30 Aug 2018 07:05:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvKlj-0008Uu-Fd for bug-gnu-emacs@gnu.org; Thu, 30 Aug 2018 07:05:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvKlf-0007OK-5Q for bug-gnu-emacs@gnu.org; Thu, 30 Aug 2018 07:05:43 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:50885) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvKle-0007Hg-SB for bug-gnu-emacs@gnu.org; Thu, 30 Aug 2018 07:05:39 -0400 Received: from [192.168.178.35] ([88.75.62.228]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LoIFV-1fSKbG45hx-00gEKu for ; Thu, 30 Aug 2018 13:05:36 +0200 To: bug-gnu-emacs@gnu.org From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Subject: =?UTF-8?Q?27.0.50;_=e2=80=98default-directory=e2=80=99_not_updated?= Message-ID: Date: Thu, 30 Aug 2018 13:09:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:a97ByJoklYxVV5t5oqF0t0x1oMAA7ms9h/GJS4jTfAlR189aAki 0au6lbeeXcpeRubakVXuIyWnzr+qqC3f4lntKr8vvtGIKIUKSdCDGCE3sh7yXab3dJXahv1 hARaNiXcOScNFKB1IUCVdWdf0zkzwETa+bQlW4DHLObHOa0q+MFjNhtJHXg+RLwj/peWy6e vTGYn9OYmVYnsPJ3+Y07w== X-UI-Out-Filterresults: notjunk:1;V01:K0:+Az6+78l+qg=:oMYNr5a/5a4WpDILYuB7bz q8nX7PyVof5zMZNNVLrPIDuzPKDcnHgRyvwX3HBxuiQW9aYEHU9uJQRvGOt04zsEn+3F3GxT6 0lmUmG1rNO2PN+DSvOPO94FFkchrodOouDjUZu1gQK8el3o86CqaQd+L/6h/4cgR3m4iK9AXI 9X+ENPC8HLaP+thLKwTNv1+YWU8VSN1tDjCJcHbuaGL/uoIhnnCw2XsZooewebdL+bAfNMqIr xl7/6t0TrgxWesN5U3hkZ4wQotMRJShIH+w27U+RKoNftErCUt+SMh6N50g37ROGNx1FD7y0/ MpfhhyXPqxXcA2MtCf+nxnGB0O0DuyLwsXot3of2yUE3OdduQdZl1wmoDZmdlCEcmGgse41o/ cvtRky2fxRHWFHvn7irMHcFpTUP8xxUEXQsYO4sL9DArULK3fyCFya1J6u6r726pQSCi+nzUf XTgB5Mbcu1xQh8IyL0/CKs2/wLLOm8srl8+ovqGpGXn2z7aRUW9aOg+pnLl6wUA4iTDPpylRB RISNn23P/cIkoqZ0pkIAmPec5/F8P5nPjRXrop8n7Fg6c3enDajWs3Fbjj1EdKMKT8kWYsMLg x3M/+b24nwE2U0LMB3nEMVycU0DuQjLsSnDlGNeBQgXH5urzSyczdPigdyfGKWvL+W+u2Odt3 /VuwYPZfr/PjPC8qAQOnL1W/WDrqcoSsCgLA7IGAEtkv/6j7aXfsw5nliRLgvwEUot3NZ2LcZ Yd/Z7qCVW9hVOp71 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.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: -6.0 (------) ‘default-directory’ not updated when dir was changed by a program Recipe from emacs -Q: M-x shell RET cd mkdir newdir echo "cd \$HOME/newdir/" > tonewdir chmod 700 tonewdir . tonewdir pwd ;;; `pwd` prints correctly result of $HOME/newdir while C-h v default-directory RET displays value of $HOME Thanks, Andreas In GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2018-08-29 Repository revision: 190e85b8d286408a88bb611967e658639c48d6c5 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8 (jessie) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. ~ Mark set M-RET is undefined Type "q" in help window to restore its previous buffer, C-M-v to scroll help. Configured using: 'configure --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS GMP Important settings: value of $LANG: de_DE.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t 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 rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml 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 cl-extra pp cl-print mode-local find-func thingatpt help-fns radix-tree help-mode easymenu cl-loaddefs cl-lib shell pcomplete comint ansi-color ring elec-pair 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 charprop 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 threads 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 8 197517 14501) (symbols 24 43324 1) (strings 16 77483 2527) (string-bytes 1 1273902) (vectors 12 16798) (vector-slots 4 569731 25214) (floats 8 53 147) (intervals 28 317 0) (buffers 536 13) (heap 1024 40460 845)) From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 30 07:18:37 2018 Received: (at 32588) by debbugs.gnu.org; 30 Aug 2018 11:18:37 +0000 Received: from localhost ([127.0.0.1]:37982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvKyD-00076G-6l for submit@debbugs.gnu.org; Thu, 30 Aug 2018 07:18:37 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:37619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvKyA-00075v-LL; Thu, 30 Aug 2018 07:18:35 -0400 Received: by mail-io0-f193.google.com with SMTP id v14-v6so7207522iob.4; Thu, 30 Aug 2018 04:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Fcb8P3FMFFRMT1f8dLZvkrh3rfGNZLSFQ1YUC1x4XRs=; b=UL/+pzrzWz+1acRBt7VNNRcQOwZk/16C/bh2MiTw+YBX6i+oDJFWSxTLMNN6IzufYk Z9ZIpq1I6HdV0QPDLrPN9QT+f3q+TVIX5qcAh87d0sSst/6aThC80vWoXHw6hzNG5F43 Y38OpohaiyN7ZEqXC5Z2NLhzfP9CL3DDCeNP3/So1boN7xBQMZW3yun4WbgtoVfSg8aa VwNpgvwx7Bs/qd0uW/s24Hm/L6DphIH4XhbAdDreSGiT5G/XeaFpDhVFPwuP13cVAT+O z6j/x2WC66Y3JEtcmbiCcBNpvpvrNgFdy5Iog1/H0KxTx9pEC8zOQDu2hC/GbfZm0IbM IUwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Fcb8P3FMFFRMT1f8dLZvkrh3rfGNZLSFQ1YUC1x4XRs=; b=DGxED/OCYnxC88Ed3wU4Jv5XypwtzpWpMY1M+3lhxyCPKHIFjdBj7AW+I7+zv49C7U 8vBXEs0Ne3FUzbzzQkwYtMu3O+n9qAgrvWS/UveoNC9j/Mrggh4UIo1AYIOdd2o7/Mtz M/VvTnykc+4hIxhvqiFU8VsGLN7NkQ0DZ6HsVWGZZsX78YSwifYHrXQqsOc2HAdW8LO+ gefEGUv3w6l5D6ZhzoosNK6URVIHoRrdymtp3gMafpaQsQQbPi/gapA9MRCUoxV5A1Oz DN37BHztGrXaZPzcar9CVFLjNHWy1/uuHErRAJdrHGU9fwzj/8dqsmwNwxT8RTkmzoCk vqeQ== X-Gm-Message-State: APzg51CWqb5+kNsHfMNL7a54aCY2jDRULGdRQVPo0150itqDJP+/m53U bBlIEs8lBOtggMRk2ZiN0BefVj9l X-Google-Smtp-Source: ANB0VdZ6SAuK3hu3Ak/UL60Qtdl5Q+zO3mOrAnMNeXGQLsDpnlg3pTrIe8ijW95zE0oS9s4dmccVNA== X-Received: by 2002:a6b:7a49:: with SMTP id k9-v6mr8906202iop.238.1535627908676; Thu, 30 Aug 2018 04:18:28 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 17-v6sm823495ite.13.2018.08.30.04.18.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 04:18:28 -0700 (PDT) From: Noam Postavsky To: Andreas =?utf-8?Q?R=C3=B6hler?= Subject: Re: bug#32588: 27.0.50; =?utf-8?Q?=E2=80=98default-directory?= =?utf-8?Q?=E2=80=99?= not updated References: Date: Thu, 30 Aug 2018 07:18:26 -0400 In-Reply-To: ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\=22's\?\= message of "Thu, 30 Aug 2018 13:09:35 +0200") Message-ID: <87h8jcrtkt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32588 Cc: 32588@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: -1.0 (-) tags 32588 notabug close 32588 quit Andreas R=C3=B6hler writes: > =E2=80=98default-directory=E2=80=99 not updated when dir was changed by a= program > > Recipe from emacs -Q: > > M-x shell RET > cd > mkdir newdir > echo "cd \$HOME/newdir/" > tonewdir > chmod 700 tonewdir > . tonewdir > pwd > > ;;; > `pwd` prints correctly result of $HOME/newdir > while C-h v default-directory RET displays value of $HOME (emacs) Directory Tracking: Shell mode keeps track of `cd', `pushd' and `popd' commands given to the subshell, in order to keep the Shell buffer's default directory (*note File Names::) the same as the shell's working directory. It recognizes these commands by examining lines of input that you send. If you use aliases for these commands, you can tell Emacs to recognize them also, by setting the variables `shell-pushd-regexp', `shell-popd-regexp', and `shell-cd-regexp' to the appropriate regular expressions (*note Regexps::). If Emacs gets confused about changes in the working directory of the subshell, type `M-x dirs'. From unknown Tue Jun 24 17:29:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Sep 2018 11:24:07 +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