From unknown Mon Jun 23 18:29:38 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#57371 <57371@debbugs.gnu.org> To: bug#57371 <57371@debbugs.gnu.org> Subject: Status: 28.1; eshell cannot handle ~ notation in PATH variable Reply-To: bug#57371 <57371@debbugs.gnu.org> Date: Tue, 24 Jun 2025 01:29:38 +0000 retitle 57371 28.1; eshell cannot handle ~ notation in PATH variable reassign 57371 emacs submitter 57371 Colton Lewis severity 57371 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 17:08:28 2022 Received: (at submit) by debbugs.gnu.org; 23 Aug 2022 21:08:28 +0000 Received: from localhost ([127.0.0.1]:45166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQb8N-0002P6-O8 for submit@debbugs.gnu.org; Tue, 23 Aug 2022 17:08:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:54322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <3zTsFYwsKDXgYkhpkjhaseockkcha.YkiXqc-cjq-aiWYocjq.knc@flex--coltonlewis.bounces.google.com>) id 1oQak3-00080v-AY for submit@debbugs.gnu.org; Tue, 23 Aug 2022 16:43:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <3zTsFYwsKDXgYkhpkjhaseockkcha.YkiXqc-cjq-aiWYocjq.knc@flex--coltonlewis.bounces.google.com>) id 1oQak3-0005GN-5m for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 16:43:19 -0400 Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]:37386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3zTsFYwsKDXgYkhpkjhaseockkcha.YkiXqc-cjq-aiWYocjq.knc@flex--coltonlewis.bounces.google.com>) id 1oQajy-0006RG-UH for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 16:43:18 -0400 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-33580e26058so257525317b3.4 for ; Tue, 23 Aug 2022 13:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=to:from:subject:mime-version:message-id:date:from:to:cc; bh=gKSMptd7vJoZVXbOCAgSX4J++W9gZhPtkdTEpb0e+HU=; b=jsFts2ACasaeByU8pBQ4GPxpfazo67WKFH20T4gipkxIiD/O/iSPCWn7pFIXiLR69Q sz/xAB36OqcBXLPTbAim69wOtlH6EmcchjUziwADcW2RZ6wispecE/aJAe+0UMSxKICy o+vRGckA9IS8BqOYMXYo7XTTN3zyA5Inj4vFeGdE6ErHbmmImUfkAORK0Anof/EftO65 sH5VPTgM31vATy6fO2/MnpMT5i6TNqskkhMzFEqX1VQFi+waNUHtAx99pZ2kyT68iSTZ aOzq5iEN7L1PbxbkVhwG/0343Vo1LpMSW2vVrnnppy4k7Qmi/7p6yh8aSRcL3XW1iRzF VzUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc; bh=gKSMptd7vJoZVXbOCAgSX4J++W9gZhPtkdTEpb0e+HU=; b=RyR32mYyaQSE8kCYufl5peL25rdbq1xmEOUfQHJQFEuIvAPldcrC1/gPNnWFjrB93G 2heOzoWqHTInB4tpFBXKL08I/1U549VDGFuR3BQ0DxXsMKDm29Ygnz02gTO3RHSKssWe AoK8mrgo2Y1oQPDafK9ECAyz70GDpd09CRwDiAGX8f84lmXZ4YMdWPQhh7RZh2WBUqxf wnHzpF+7q7RUVUcjlQsrTKu45CFCSB0hQaDlxRxYFFTguG7vP3IMU73RjeAJFTrzdseI RuCSNdohUNdBwmqdcIlhq45HC7f9Wr3bVUkZOzdVyEw9TLTl+f9krFHlYO3C9eRmv1RU Ht6Q== X-Gm-Message-State: ACgBeo2cQ+DEpfgvoDu35fE9KBhiDE+QVCcVl6BeRZlGqhj+H2Tcfm9h gqwc65/3zBJBBcjvOAxchRWqooFO9FeLV+JexkXE2Caixjyxxh+DgIZYf5shJDL85J7H7myFvup RGIgEBBgKU80f2kWg2oEv4yWQR7HghN0V5Kmhw9T1a5sfYTBZjui8dMHLjrLJXRuDD3ie5dt4aQ == X-Google-Smtp-Source: AA6agR6xfnwRNOJ1fMlW87wE2XJ0enCOZrMfqz121jqbZGqypgk/fTyzdTHWxTAdCWyhPQptZhBSxp/m8GZjeutZDg== X-Received: from coltonlewis-kvm.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:14ce]) (user=coltonlewis job=sendgmr) by 2002:a25:e004:0:b0:695:d8b6:57e7 with SMTP id x4-20020a25e004000000b00695d8b657e7mr7501890ybg.380.1661287373233; Tue, 23 Aug 2022 13:42:53 -0700 (PDT) Date: Tue, 23 Aug 2022 20:42:52 +0000 Message-Id: Mime-Version: 1.0 Subject: 28.1; eshell cannot handle ~ notation in PATH variable From: Colton Lewis To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Received-SPF: pass client-ip=2607:f8b0:4864:20::114a; envelope-from=3zTsFYwsKDXgYkhpkjhaseockkcha.YkiXqc-cjq-aiWYocjq.knc@flex--coltonlewis.bounces.google.com; helo=mail-yw1-x114a.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 23 Aug 2022 17:08:25 -0400 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: -2.3 (--) Discovered while investigating the other bug I sent. 1. Create an executable ~/test-bin/test.sh 2. PATH="~/test-bin:$PATH" emacs -Q 3. Start eshell 4. test.sh 5. Observe no such file or directory error This can be worked around using PATH="$HOME/test-bin:$PATH" or using shell rather than eshell. In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-06-27, modified by Debian built on kokoro-ubuntu Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Debian GNU/Linux rodete Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/google-emacs:/usr/local/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/site-lisp:/usr/local/share/google-emacs/site-lisp:/usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/site-lisp:/usr/share/google-emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --program-prefix=google- --disable-silent-rules GOOGLE_VERSION=28.1+gg1+1.20220627.053402.rc213 --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/google-emacs:/usr/local/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/site-lisp:/usr/local/share/google-emacs/site-lisp:/usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/site-lisp:/usr/share/google-emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --program-prefix=google- --disable-silent-rules GOOGLE_VERSION=28.1+gg1+1.20220627.053402.rc213 --with-cairo --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -ffile-prefix-map=/build/google-emacs-V4HnnR/google-emacs-28.1+gg1+1.20220627.053402.rc213=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: google-tramp-direct-mode: t global-subword-mode: t subword-mode: t google-emacs-support-show-upgrade-mode: t editorconfig-mode: t google3-build-global-integrate-build-manipulation-mode: t google3-build-integrate-build-manipulation-mode: t google-kg-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-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 indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/f/f-shortdoc hides /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/f/google/f-shortdoc /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/async/smtpmail-async hides /usr/share/google-emacs/site-lisp/elpa/async-1.9.3/smtpmail-async /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/async/async hides /usr/share/google-emacs/site-lisp/elpa/async-1.9.3/async /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/async/async-bytecomp hides /usr/share/google-emacs/site-lisp/elpa/async-1.9.3/async-bytecomp /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/async/dired-async hides /usr/share/google-emacs/site-lisp/elpa/async-1.9.3/dired-async /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-clang hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-clang /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-tng hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-tng /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-oddmuse hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-oddmuse /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-bbdb hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-bbdb /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-keywords hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-keywords /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-capf hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-capf /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-dabbrev-code hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-dabbrev-code /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-tempo hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-tempo /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-ispell hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-ispell /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-dabbrev hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-dabbrev /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-abbrev hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-abbrev /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-elisp hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-elisp /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-yasnippet hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-yasnippet /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-cmake hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-cmake /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-etags hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-etags /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-template hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-template /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-files hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-files /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-gtags hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-gtags /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-nxml hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-nxml /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-css hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-css /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/company_mode/company-semantic hides /usr/share/google-emacs/site-lisp/elpa/company-0.9.13/company-semantic /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/dash/dash hides /usr/share/google-emacs/site-lisp/elpa/dash-2.19.1/dash /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/epl/epl hides /usr/share/google-emacs/site-lisp/elpa/epl-0.9/epl /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/f/f hides /usr/share/google-emacs/site-lisp/elpa/f-0.20.0/f /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/flycheck/flycheck hides /usr/share/google-emacs/site-lisp/elpa/flycheck-32snapshot/flycheck /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/ht/ht hides /usr/share/google-emacs/site-lisp/elpa/ht-2.3/ht /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/lv/lv hides /usr/share/google-emacs/site-lisp/elpa/lv-0.15.0/lv /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/memoize/memoize hides /usr/share/google-emacs/site-lisp/elpa/memoize-1.1/memoize /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/pkg_info/pkg-info hides /usr/share/google-emacs/site-lisp/elpa/pkg-info-0.6/pkg-info /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/popup/popup hides /usr/share/google-emacs/site-lisp/elpa/popup-0.5.8/popup /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/s/s hides /usr/share/google-emacs/site-lisp/elpa/s-1.12.0/s /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/spinner/spinner hides /usr/share/google-emacs/site-lisp/elpa/spinner-1.7.4/spinner /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/yasnippet/yasnippet hides /usr/share/google-emacs/site-lisp/elpa/yasnippet-0.14.0/yasnippet /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/jsonrpc/jsonrpc hides /usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/lisp/jsonrpc /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/transient/lisp/transient hides /usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/lisp/transient /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/flymake/flymake hides /usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/lisp/progmodes/flymake /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/xref/xref hides /usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/lisp/progmodes/xref /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/project/project hides /usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/lisp/progmodes/project /usr/share/google-emacs/site-lisp/elpa/let-alist-1.0.6/let-alist hides /usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/lisp/emacs-lisp/let-alist /usr/share/google-emacs/site-lisp/emacs-google-config/third_party/elisp/eldoc/eldoc hides /usr/share/google-emacs/28.1+gg1+1.20220627.053402.rc213/lisp/emacs-lisp/eldoc Features: (em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-cmpl em-dirs esh-var em-basic em-banner em-alias esh-mode shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader tabify misearch multi-isearch vc-fig vc-hg diff-mode vc vc-dispatcher editorconfig-core editorconfig-core-handle editorconfig-fnmatch ido-completing-read+ memoize cus-edit pp cus-start wid-edit minibuf-eldef google-tramp cap-words superword subword desktop frameset cus-load eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util edmacro kmacro google-pastebin google-prodaccess google-sendgmr sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils google google-emacs-support editorconfig google-log gud url-sso google3-build-fn google-imports google3 google-gud google-comint google-kg google-trailing-whitespace google-coding-style python-custom sh-script smie python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 time-date ls-lisp js imenu cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine google-codemaker google-process google-emacs-utilities with-editor cl-extra help-mode server compat pcase f f-shortdoc shortdoc dash s aio generator emacs-google-config-loaddefs google-paths xdg rx google-platform sql view ess-site ess-toolbar ess-mouse mouseme ess-swv ess-noweb ess-noweb-font-lock-mode ess-jags-d ess-bugs-l essd-els ess-xls-d ess-vst-d ess-stata-mode ess-stata-lang cc-vars cc-defs make-regexp ess-sp6w-d ess-sp5-d ess-sp4-d ess-sas-d ess-sas-l ess-sas-a ess-s4-d ess-s3-d ess-omg-d ess-omg-l ess-arc-d ess-lsp-l ess-sp6-d ess-dde ess-sp3-d ess-julia julia-mode cl ess-r-mode ess-r-flymake flymake-proc flymake warnings thingatpt ess-r-xref xref project ess-trns ess-r-package shell pcomplete ess-r-syntax ess-r-completion ess-roxy ess-rd essddr noutline outline easy-mmode hideshow ess-s-lang ess-help info ess-mode ess ess-noweb-mode ess-inf ess-tracebug advice format-spec ess-generics compile text-property-search ess-utils ido ess-custom executable comint ansi-color ring package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 238908 26532) (symbols 48 25053 5) (strings 32 86644 3504) (string-bytes 1 2984670) (vectors 16 44430) (vector-slots 8 890789 53781) (floats 8 170 280) (intervals 56 1547 2) (buffers 992 19)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 20:03:13 2024 Received: (at 57371) by debbugs.gnu.org; 17 Jan 2024 01:03:13 +0000 Received: from localhost ([127.0.0.1]:50182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPuKm-0003rT-KV for submit@debbugs.gnu.org; Tue, 16 Jan 2024 20:03:13 -0500 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:47550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPqnE-0007io-05 for 57371@debbugs.gnu.org; Tue, 16 Jan 2024 16:16:20 -0500 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-559b3ee02adso1242263a12.3 for <57371@debbugs.gnu.org>; Tue, 16 Jan 2024 13:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705439773; x=1706044573; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=UQnl1CFaRwZ4dFCTnYG+PonBTLla7sIVkaaNWv/ivjE=; b=U+TxJYYLLF5fAHB3PmtiTo4HdkHhpnLzpyvHaPWCV7rL3y/m/GTlyxgCXT4VPJnVyJ KeQysjhwQSvL6AYCWHIlwv+sUJ1wVfS06nn5kTWtBLaVkMZXP8Sk1c/6SWnwloKyBmSK rIhnMtLGn9QTeiny9ZY8Al09NENdW/Mp73nFwYRvKVLSQQSoMhHLZPn9oP98LjCYPLC3 6Fs4nWXY27Rrh01rrWYMM5qDbhbKzR+k9H8gqJ6cz9IxZ6B1r0fjxP/Jtk0RTyNCVF02 6u6nfXwFYuiaJdWzIGfcp1kEDsb0YdqbsnZ0+O455A+Sx7I4Ff1adL1AoVKSJZ0tM0Y4 01Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705439773; x=1706044573; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UQnl1CFaRwZ4dFCTnYG+PonBTLla7sIVkaaNWv/ivjE=; b=IT08I0grEVxoaXcyGVrow8W1R5XdJy0Xjox54WJIf2TNZCkZr04BeGsH3s6V8C//pC e33CyxukiEGxXvB0TpfWPzr3hN4983IbcjlrHIjxlUtF3IrZK2Al1v1XTya4ihDigOdt qS+4PkCXHr8H26W9IdTiTn03oSfzwk9ovJIARctjO2/rJy4ojsHwKnWlmNA7RznS/HWG ZfUXdV+qlzanP0QrLlAXoVriDPez2oZemsAZUDgxz2orWFpPquqFtRzR036dCpRw/XPx P93iCcI5TnKh9/wpryofJ9nZEOPscUIUoiJTRD51PBTbLKc5R1StRMydc+JKQAx2g+up 7DmQ== X-Gm-Message-State: AOJu0YxhaNVeUNm6aSA6ymkcZaLie6qPC2Cz3LTRXcx8U9Z+S8nqbZOA 1w1SjakmQDxkNCllO1eFsYSufnMdEOQZa1GNSYN7eQyP+jc= X-Google-Smtp-Source: AGHT+IGccqnyJyE/G3lxWUmEHgoRhurkM5Eb3yRfOmpsBwbrIcD4C+OyEfgtq7H8SscpLTWsxXuQLQpyLLnC+nw5ykA= X-Received: by 2002:a05:6402:3193:b0:559:7390:bba6 with SMTP id di19-20020a056402319300b005597390bba6mr807957edb.25.1705439772987; Tue, 16 Jan 2024 13:16:12 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?SmFrdWIgSmXEjW3DrW5law==?= Date: Tue, 16 Jan 2024 22:16:01 +0100 Message-ID: Subject: Re: bug#57371: 28.1; eshell cannot handle ~ notation in PATH variable To: 57371@debbugs.gnu.org Content-Type: multipart/alternative; boundary="000000000000dad271060f16a352" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 57371 X-Mailman-Approved-At: Tue, 16 Jan 2024 20:03:10 -0500 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 (-) --000000000000dad271060f16a352 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Colton, what you're describing is not the bug in eshell but rather a bash feature; no other shell will perform expansion on literal tilde in PATH (you can disable it in Bash using POSIXLY_CORRECT environment variable). If you drop the quotes then it's going to work as expected because the shell will expand the tilde to HOME before storing it in PATH: PATH=3D~/test-bin:$PATH emacs -Q Best, Jakub Je=C4=8Dm=C3=ADnek --000000000000dad271060f16a352 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Colton, what you're describing is not the bug in es= hell but rather a bash feature; no other shell will perform expansion on li= teral tilde in PATH=C2=A0(you can disable it in Bash using POSIXLY_CORRECT = environment variable).=C2=A0 If you drop the quotes then it's going to = work as expected because the shell will expand the tilde to HOME before sto= ring it in PATH:

PATH=3D~/test-bin:$PATH emacs -Q

=
Best,
Jakub Je=C4=8Dm=C3=ADnek
--000000000000dad271060f16a352-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 17 17:03:03 2024 Received: (at 57371-done) by debbugs.gnu.org; 17 Jan 2024 22:03:04 +0000 Received: from localhost ([127.0.0.1]:53718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQDzz-0004EY-LS for submit@debbugs.gnu.org; Wed, 17 Jan 2024 17:03:03 -0500 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:44515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQDzx-0004E1-Uj for 57371-done@debbugs.gnu.org; Wed, 17 Jan 2024 17:03:02 -0500 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-559edcf1f4fso833890a12.1 for <57371-done@debbugs.gnu.org>; Wed, 17 Jan 2024 14:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705528974; x=1706133774; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zIsefdl9LZLMm/SkROIpHNFKKSL4uuPNq06uH3dEi/Y=; b=Ok8qJOZ+WzsgWGg6V+h1Cj/zQB8rI1gsjJEbwcqmr8oP/jdmQAlJUzrNXxQAACN6Ds 1/cbpmPIF8kCUs5SrxlgMLEYr+W8drimvoR6u8heupx1PAMKYUX6XyJsLu/4qlRfRU6X RNs9dm6FoSRKkrtqRN/GDNtbDlidVeInQulFrACShtMf682LkCgnGnYSlLpZmnlNLp/2 Gy9mCOrNM4GtR4sjWbLIf+yYxqGGsACiDNDJuj3MBWHLPHgW/bA2vjv3pBUUSplh1tHd R+UIow5+9HnRMWB2fqtXgZanaF8FnmNan5OYw6Q89XYJZXRVJG4nvlya9+gAtg5ozyhQ HZmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705528974; x=1706133774; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=zIsefdl9LZLMm/SkROIpHNFKKSL4uuPNq06uH3dEi/Y=; b=UZdlXeUTtu/qwnZSe6e+SVVnBuZDbrx+X/hFrRdJsDwgoRrwQ1b2M2C6eipmg9D6uA WXkYOSMez4RxMpj7DhQhHjbXrxtS0qBFp7k6FeOf0gYAuqkkHXguAMQrxnUCoy2uoWHA i7ogvCCNAV3LYXcuhRUnsWS+EYnMrL4tpQ0RpKJF2W0uvVzMHJpAgWj/cvZPGdHnvB// wxiGKLzkjZZbvDQc/NhfqUHqs42BLKETfy8V40uL19DP3eYg8w3ASckeFyKN7N1C2pFO 6tpZw6GpAvtUonpyYWAzP4dya9tKlEjzzj0nIGlEoMIqIMsnbUQIBpWelrXD7RzncfOf VjvA== X-Gm-Message-State: AOJu0YxMbFCSehsVU005UhO8KEF5W2MaMzGoCyvDXQWwLuPVV05+XFMG qn9r948ykzGWEMTTGwWDmbaWX6N5iGA= X-Google-Smtp-Source: AGHT+IHGO0IiD5dgKtKaEheT1F2q6pTPDHsIZx73cgWmS2/2r683MrmOcgI9p3lOpCL+OEvoHiQ5ww== X-Received: by 2002:a05:6402:31e6:b0:559:e186:13e0 with SMTP id dy6-20020a05640231e600b00559e18613e0mr791523edb.20.1705528973781; Wed, 17 Jan 2024 14:02:53 -0800 (PST) Received: from Jakubs-MacBook-Air.local (ip-217-030-066-058.aim-net.cz. [217.30.66.58]) by smtp.gmail.com with ESMTPSA id ck4-20020a0564021c0400b00559cad6fc46sm1718585edb.49.2024.01.17.14.02.53 for <57371-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 14:02:53 -0800 (PST) From: =?utf-8?Q?Jakub_Je=C4=8Dm=C3=ADnek?= To: 57371-done@debbugs.gnu.org Subject: Re: bug#57371: 28.1; eshell cannot handle ~ notation in PATH variable In-Reply-To: ("Jakub =?utf-8?B?SmXEjW3DrW5layIncw==?= message of "Tue, 16 Jan 2024 22:16:01 +0100") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.1 Date: Wed, 17 Jan 2024 23:02:52 +0100 Message-ID: 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: 57371-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 (-) tags 57371 notabug thanks Colton Lewis writes: > Discovered while investigating the other bug I sent. > > 1. Create an executable ~/test-bin/test.sh > 2. PATH=3D"~/test-bin:$PATH" emacs -Q > 3. Start eshell > 4. test.sh > 5. Observe no such file or directory error > > This can be worked around using PATH=3D"$HOME/test-bin:$PATH" or using > shell rather than eshell. Jakub Je=C4=8Dm=C3=ADnek writes: >> Hi Colton, what you're describing is not the bug in eshell but rather a = bash feature; no other shell will perform expansion on literal >> tilde in PATH (you can disable it in Bash using POSIXLY_CORRECT environm= ent variable). If you drop the quotes then it's going >> to work as expected because the shell will expand the tilde to HOME befo= re storing it in PATH: >> >> PATH=3D~/test-bin:$PATH emacs -Q >> >> Best, >> Jakub Je=C4=8Dm=C3=ADnek From unknown Mon Jun 23 18:29:38 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, 15 Feb 2024 12:24:15 +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