From unknown Mon Aug 11 02:14:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20008 <20008@debbugs.gnu.org> To: bug#20008 <20008@debbugs.gnu.org> Subject: Status: 24.4; Eshell eshell/which uses eshell-path-env but error with (getenv "PATH"), and these 2 sometimes get out of sync (not remote directory) Reply-To: bug#20008 <20008@debbugs.gnu.org> Date: Mon, 11 Aug 2025 09:14:44 +0000 retitle 20008 24.4; Eshell eshell/which uses eshell-path-env but error with= (getenv "PATH"), and these 2 sometimes get out of sync (not remote directo= ry) reassign 20008 emacs submitter 20008 Hua Wei severity 20008 minor tag 20008 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 05 11:51:26 2015 Received: (at submit) by debbugs.gnu.org; 5 Mar 2015 16:51:26 +0000 Received: from localhost ([127.0.0.1]:36191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTYzc-0006L9-Qp for submit@debbugs.gnu.org; Thu, 05 Mar 2015 11:51:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48385) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTS7d-0007nC-Hp for submit@debbugs.gnu.org; Thu, 05 Mar 2015 04:31:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTS7T-0003vQ-C9 for submit@debbugs.gnu.org; Thu, 05 Mar 2015 04:31:08 -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.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTS7T-0003vM-9T for submit@debbugs.gnu.org; Thu, 05 Mar 2015 04:31:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTS7R-0000kg-AA for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 04:31:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTS7O-0003ue-0x for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 04:31:01 -0500 Received: from m12-13.163.com ([220.181.12.13]:41278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTS7M-0003kj-VK for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2015 04:30:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:Message-ID:From:Subject:MIME-Version; bh=Rucnr qXXY6Xrr0HLx7onSS/p03GoJzbkeoNZrWn20uM=; b=TO3D4sOlbhfmjZ2j+I5/h b2o5oarQm5rmA7pS9f4VHggWaswG1wiDIZ8MVDF/6LtW8NAwiixRFLvcU/3LlaUI mXuz56X5QEETZK8aEgRE7KZ1a2LL18bc+Ew1ZAmA8NGjMsZWw916XFQJz3ERJVJS ngMma/hLBvHNGmjF4MXmoM= Received: from pengju-laptop.hw (unknown [121.76.105.129]) by smtp9 (Coremail) with SMTP id DcCowADnlQ5DIvhUDrODAA--.654S2; Thu, 05 Mar 2015 17:30:50 +0800 (CST) Date: Thu, 05 Mar 2015 17:30:42 +0800 Message-ID: <877fuvyenx.wl-phuck163@163.com> From: Hua Wei To: bug-gnu-emacs@gnu.org Subject: 24.4; Eshell eshell/which uses eshell-path-env but error with (getenv "PATH"), and these 2 sometimes get out of sync (not remote directory) User-Agent: x MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-CM-TRANSID: DcCowADnlQ5DIvhUDrODAA--.654S2 X-Coremail-Antispam: 1Uf129KBjvJXoW3Cry3Aw15WF1rJr1rXF1UKFg_yoWDAF13pF W29r95KrWrX3ZY9F18Jw1UWr92ga97GFnxu3s8Aw45AanxGwnIvF10yr129F9rGF1DX3ya qFZ7Jr98JF4DA37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jspnPUUUUU= X-Originating-IP: [121.76.105.129] X-CM-SenderInfo: 5skxuyqrwtqiywtou0bp/1tbiSgqzp1O-r9wSHgAAsH X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 05 Mar 2015 11:51:22 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -3.8 (---) M-x eshell switch to other buffer use (setenv "PATH" "some path") to set new PATH env var enter eshell with C-u 2 eshell (there is already one eshell buffer running) a new eshell buffer opens type command "which " output "not found in 'path'" (in this message, the 'path' is from (getenv "PATH")) this is confusing, because the function uses 'eshell-path-env' for search and use (getenv "PATH") for error messaging the bug: eshell-path-env gets out of sync with (getenv "PATH") In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.7) of 2014-11-29 Windowing system distributor `The X.Org Foundation', version 11.0.11403000 System Description: Linux Mint 16 Petra Important settings: value of $LC_MONETARY: ja_JP.UTF-8 value of $LC_NUMERIC: ja_JP.UTF-8 value of $LC_TIME: ja_JP.UTF-8 value of $LANG: zh_CN.utf8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: EShell Minor modes in effect: semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode semantic-idle-scheduler-mode) S))) shell-dirtrack-mode: t display-time-mode: t evil-mode: t evil-local-mode: t ido-ubiquitous-mode: t on-screen-global-mode: t electric-pair-mode: t global-ede-mode: t global-cwarn-mode: t global-semantic-idle-breadcrumbs-mode: t show-paren-mode: t global-highlight-changes-mode: t highlight-changes-visible-mode: t global-hl-line-mode: t icomplete-mode: t global-auto-complete-mode: t auto-complete-mode: t ido-everywhere: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t recentf-mode: t override-global-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t abbrev-mode: t Recent messages: Invalid face reference: nil [13 times] Invalid face reference: nil [13 times] [2 times] Invalid face reference: nil [13 times] QuitInvalid face reference: nil Invalid face reference: nil [12 times] Quit Invalid face reference: nil [39 times] [2 times] Load-path shadows: /usr/share/emacs/site-lisp/flim/hex-util hides /usr/local/share/emacs/24.4/lisp/hex-util /usr/share/emacs/site-lisp/flim/md4 hides /usr/local/share/emacs/24.4/lisp/md4 /usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/local/share/emacs/24.4/lisp/net/sasl-ntlm /usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/local/share/emacs/24.4/lisp/net/hmac-md5 /usr/share/emacs/site-lisp/flim/sasl hides /usr/local/share/emacs/24.4/lisp/net/sasl /usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/local/share/emacs/24.4/lisp/net/sasl-digest /usr/share/emacs/site-lisp/flim/hmac-def hides /usr/local/share/emacs/24.4/lisp/net/hmac-def /usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/local/share/emacs/24.4/lisp/net/sasl-cram /usr/share/emacs/site-lisp/flim/ntlm hides /usr/local/share/emacs/24.4/lisp/net/ntlm /usr/share/emacs/site-lisp/flim/attic/smtpmail hides /usr/local/share/emacs/24.4/lisp/mail/smtpmail /usr/share/emacs/site-lisp/wl/utils/rfc2368 hides /usr/local/share/emacs/24.4/lisp/mail/rfc2368 /usr/share/emacs/site-lisp/wl/elmo/utf7 hides /usr/local/share/emacs/24.4/lisp/gnus/utf7 Features: (shadow emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcmpl-unix conf-mode debug hi-lock man tramp-sh gnutls network-stream starttls tls sh-script smie executable image-file ffap url-parse url-vars org-capture ede/linux ede/make tramp-cache tramp-smb tramp tramp-compat auth-source password-cache tramp-loaddefs trampver ede/emacs bookmark dired-aux sort org-clock misearch multi-isearch ledger-mode ledger-schedule ledger-xact ledger-texi ledger-test ledger-state ledger-sort ledger-report ledger-reconcile ledger-post ledger-occur ledger-init ledger-fonts ledger-exec ledger-context ledger-complete ledger-commodities ledger-regex rx shell cal-move parse-time w3m-form mel-q-ccl pccl pccl-20 elmo-internal offlineimap modb-legacy modb-standard elmo-maildir mime-setup mail-mime-setup semi-setup mime-image mime-w3m w3m w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util elmo-nntp wl-spam elmo-spam elsp-header elsp-generic wl-fldmgr wl-score smtp sasl sasl-anonymous sasl-login sasl-plain wl-demo wl-news wl-address pldap wl-thread wl-action wl wl-e21 wl-draft wl-template wl-summary ps-print ps-def lpr wl-refile wl-message wl-mime pgg pgg-parse pgg-def epa derived epg mime-play filename mime-edit eword-encode sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elmo-mime mmelmo-buffer mmelmo-imap mime-view flow-fill mime-conf calist semi-def mmimap mime-parse mmbuffer wl-highlight elmo-filter elmo-multi wl-folder wl-util crm time-stamp elmo-pop3 elmo-net elmo-cache elmo-map elmo-dop elmo-flag elmo-localdir wl-vars wl-version elmo elmo-signal elmo-msgdb modb modb-generic modb-entity mime mmgeneric elmo-util emu invisible inv-23 poem poem-e20 poem-e20_3 eword-decode mel mime-def alist std11 mcharset mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom elmo-date timezone elmo-vars path-util poe elmo-version pym static apel-ver product luna cl cal-julian cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs cal-iso imenu org-element org-rmail org-mhe org-irc org-info org-gnus gnus-util org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org-agenda org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-lisp tabify eieio-opt find-func vc-git em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias pcomplete esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util mule-util pp thingatpt semantic/ia semantic/analyze/refs semantic/db-find semantic/db-ref semantic/senator semantic/decorate pulse semantic/analyze semantic/scope semantic/analyze/fcn semantic/db cc-langs ede/cpp-root ede/dired dired-x dired flymake compile comint ansi-color server time evil evil-integration evil-maps evil-commands evil-types evil-digraphs evil-search evil-ex evil-macros evil-repeat evil-states evil-core evil-common rect evil-vars filesets ido-ubiquitous warnings help-mode eim on-screen elec-pair ede/speedbar ede/files ede ede/base ede/auto ede/source eieio-base eieio-speedbar eieio-custom cwarn cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs semantic/idle semantic/ctxt semantic/sb speedbar sb-image dframe semantic/sort semantic/format ezimage semantic/tag-ls semantic/find semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw eieio eieio-core mode-local cedet webjump browse-url paren appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs hilit-chg hl-line icomplete ls-lisp auto-complete-config auto-complete cl-macs gv popup ido linum buffer-stack winner ring windmove edmacro kmacro undo-tree diff byte-opt advice help-fns saveplace recentf tree-widget wid-edit cl-loaddefs cl-lib use-package diminish bytecomp byte-compile cconv bind-key easy-mmode buffer-stack-autoloads csharp-mode-autoloads dic-lookup-w3m-autoloads dictionary-autoloads connection-autoloads dired+-autoloads eimp-autoloads emms-mark-ext-autoloads emms-autoloads evil-autoloads google-autoloads goto-last-change-autoloads highlight-symbol-autoloads imenu-anywhere-autoloads ledger-mode-autoloads link-autoloads offlineimap-autoloads on-screen-autoloads org-gnome-autoloads gnome-calendar-autoloads notify-autoloads powershell-autoloads powershell-mode-autoloads s-autoloads stem-autoloads telepathy-autoloads theme-changer-autoloads tracking-autoloads shorten-autoloads undo-tree-autoloads info easymenu w3m-autoloads wcheck-mode-autoloads zenburn-theme-autoloads package epg-config time-date china-util tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 2559778 253066) (symbols 48 59811 32) (miscs 40 29056 24205) (strings 32 749716 22463) (string-bytes 1 8742906) (vectors 16 53911) (vector-slots 8 1300845 159353) (floats 8 1432 2608) (intervals 56 50066 821) (buffers 960 276) (heap 1024 159776 4041)) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 01 03:07:33 2019 Received: (at 20008) by debbugs.gnu.org; 1 Dec 2019 08:07:33 +0000 Received: from localhost ([127.0.0.1]:35419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibKGS-0002XR-9r for submit@debbugs.gnu.org; Sun, 01 Dec 2019 03:07:33 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:56928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ibKGQ-0002XB-6L; Sun, 01 Dec 2019 03:07:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Pv0jC68SSl3dqiSnAwmJp8a4Uclui518VzBKAUguHTI=; b=sulIgNZd8iquS5z5lRywl0F0kw zoAd9YQkkG7LZBJHEYYXPQc2y2IqcMrWtKpZB4WviP0rIoV2ufFk7mTLVDIIjqnLAAuzx/cyMS+8f Xmzc1HqamzaBVM+O3Diadou9EdylXPJK7REW1j+hXzwYdJrzJZDcxl3Kq28D4iIgmQivl4xyD01AA EvuKPQclefobvW1Jsrz4tl9N044D0SAE/xZ06T/u5wd9ga/a3i6LN0UBW9OL2ut0aeqm2SqSmVPfF o+Lv6FndD3Dc9+eR4pHgEgQALs/8yjU0rrymOzGuHrgvBDcG8jw/9m/HhPN19Nk8j5FO31H7QgIT4 oc7Bnq8w==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:38120 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1ibKGJ-001M1g-GP; Sun, 01 Dec 2019 03:07:23 -0500 From: Stefan Kangas To: Hua Wei Subject: Re: bug#20008: 24.4; Eshell eshell/which uses eshell-path-env but error with (getenv "PATH"), and these 2 sometimes get out of sync (not remote directory) In-Reply-To: <877fuvyenx.wl-phuck163@163.com> (Hua Wei's message of "Thu, 05 Mar 2015 17:30:42 +0800") References: <877fuvyenx.wl-phuck163@163.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Sun, 01 Dec 2019 09:07:21 +0100 Message-ID: <87h82kii4m.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20008 Cc: 20008@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 (-) found 20008 27.0.50 tags 20008 + confirmed thanks Hua Wei writes: > M-x eshell > switch to other buffer > use (setenv "PATH" "some path") to set new PATH env var > enter eshell with C-u 2 eshell (there is already one eshell buffer running) > a new eshell buffer opens > type command "which " > output "not found in 'path'" (in this message, the 'path' is from (getenv "PATH")) > this is confusing, because the function uses 'eshell-path-env' for search and use (getenv "PATH") for error messaging > the bug: > eshell-path-env gets out of sync with (getenv "PATH") I can reproduce this bug on Emacs 27.1 using the following recipe: 0. emacs -Q 1. M-x eshell 2. Enter commands in eshell: mkdir /tmp/foobin cp /bin/true /tmp/foobin/foobar setenv PATH /tmp/foobin foobar Here is a transcript: Welcome to the Emacs shell ~ $ mkdir /tmp/foobin ~ $ cp /bin/true /tmp/foobin/foobar ~ $ setenv PATH /tmp/foobin /tmp/foobin ~ $ foobar foobar: command not found Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 17 21:54:40 2022 Received: (at 20008-done) by debbugs.gnu.org; 18 Oct 2022 01:54:40 +0000 Received: from localhost ([127.0.0.1]:50640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okboV-0004DG-P9 for submit@debbugs.gnu.org; Mon, 17 Oct 2022 21:54:40 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:35562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okboU-0004D3-Ib for 20008-done@debbugs.gnu.org; Mon, 17 Oct 2022 21:54:38 -0400 Received: by mail-pg1-f175.google.com with SMTP id u71so12063070pgd.2 for <20008-done@debbugs.gnu.org>; Mon, 17 Oct 2022 18:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=R7u10m1fUP5tiU4Wa7Z9yu95/nDxN4dlAFGgF9NJA0U=; b=RF+CwPgstJZVc+FYLBzHPevWW6Vf3OUFV0KaO3wvJjKfxrzjXyvDMHLeHUXne3xwdV kafc+MQwoRKTmQS/Dno/2S18jTLcmtDwV1Gcu0OQcGVdtVOAx00WMFRJXMeH5qE5dIZs W5CCxDVTE9HZq0/HI4IpS3yMMTs3oDAvrSwTZO7OyKiZ7SwRQFgq6UTxFn8jAItBQvdN 3izh8SYxNYpzRYkN9N1pSDPuzIM4bhVQtCidSH9t09cshwYa8JB+cznx8ibCjl/5U9Lh jNB6PD/FWlOJfYMWQivicZMc5kQJ8F8ACwAQbFDZqE6csK3+QAikyzvx+dryM1SkhzUG w1wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=R7u10m1fUP5tiU4Wa7Z9yu95/nDxN4dlAFGgF9NJA0U=; b=4arI8sjQTfWmPZnO3UJiwyi0QJ8kgSmRcFf2R1MlmtpSTTvVoifZDLdztJmI+XdzKW TvaNqijlKXT9RwJdWqyLeJbpYyqFgjdAtOBgjzO3+F8okLLCTG+/A//oQZeuj9JEigeX GgJM7Jj2rcsj1DEf7NpEKLvlxxy0vv5iXgIUd6ci6XLaoD7Aj1SlE+HEMEkilxCicA65 IJZ28lWh7LKAl4DsLlTYF49C3WrfJObHVTHFX4FI+ghZZZSflvl+iQZuKvxYF786DOz5 m4174OS3vwprpf85leXgJljM8JHqklQUcs+YkzobSpbDLNlURD19MfJrrhYchC0vz5ze HpTQ== X-Gm-Message-State: ACrzQf3QrKvDchqexJeCXixRM8LVoUt9s8BTdaNHayNGF1HS+t3tKBjr vgqpRLy102bKTSr9EQPmu9Y= X-Google-Smtp-Source: AMsMyM4y2W+wGK9KNkaWS6cTeAB1+hSj9EbVlLeIhDMhFwIzdRe4TvyS0E5rodPVDWcz0vFBK92suA== X-Received: by 2002:a63:82c6:0:b0:460:a691:356 with SMTP id w189-20020a6382c6000000b00460a6910356mr590672pgd.621.1666058072863; Mon, 17 Oct 2022 18:54:32 -0700 (PDT) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id h22-20020aa796d6000000b00561b455267fsm7879629pfq.27.2022.10.17.18.54.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 18:54:32 -0700 (PDT) Message-ID: <8de2d990-4f31-7339-4fd2-b747d158ef53@gmail.com> Date: Mon, 17 Oct 2022 18:54:32 -0700 MIME-Version: 1.0 Subject: Re: 24.4; Eshell eshell/which uses eshell-path-env but error with (getenv "PATH"), and these 2 sometimes get out of sync (not remote directory) Content-Language: en-US To: Hua Wei , 20008-done@debbugs.gnu.org References: <877fuvyenx.wl-phuck163@163.com> From: Jim Porter In-Reply-To: <877fuvyenx.wl-phuck163@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20008-done 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 (-) On 3/5/2015 1:30 AM, Hua Wei wrote: > > M-x eshell > switch to other buffer > use (setenv "PATH" "some path") to set new PATH env var > enter eshell with C-u 2 eshell (there is already one eshell buffer running) > a new eshell buffer opens > type command "which " > output "not found in 'path'" (in this message, the 'path' is from (getenv "PATH")) > this is confusing, because the function uses 'eshell-path-env' for search and use (getenv "PATH") for error messaging > the bug: > eshell-path-env gets out of sync with (getenv "PATH") I've fixed this in fd4992d356a9c4225cb518a6a5309aaa1d0f640b over in bug#57556. Closing. From unknown Mon Aug 11 02:14:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Nov 2022 12: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