From unknown Thu Jun 19 14:04:18 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#5134 <5134@debbugs.gnu.org> To: bug#5134 <5134@debbugs.gnu.org> Subject: Status: $PATH with double slashes parsing bug Reply-To: bug#5134 <5134@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:18 +0000 retitle 5134 $PATH with double slashes parsing bug reassign 5134 emacs submitter 5134 Sebastien Mondet severity 5134 normal thanks From sebastien.mondet@gmail.com Sun Dec 6 04:53:52 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Dec 2009 12:53:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.1 required=4.0 tests=FOURLA,MULTALT autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB6CrohU017215 for ; Sun, 6 Dec 2009 04:53:51 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHGcX-0004Dg-Jj for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 07:53:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHGcS-00049V-Qe for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 07:53:49 -0500 Received: from [199.232.76.173] (port=54546 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHGcS-00049F-Jy for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 07:53:44 -0500 Received: from mail-ew0-f215.google.com ([209.85.219.215]:62512) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHGcR-000180-Ts for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 07:53:44 -0500 Received: by ewy7 with SMTP id 7so3888503ewy.32 for ; Sun, 06 Dec 2009 04:53:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=zyhje/mGTTgaBsggoN/2g6fS6GXFm5uFCyIS53KUAYs=; b=Uro0bZPURkahYZhlhUsH5NwYJzIZGwNqpEzYOD1YtndWYGuYme668bi2ITKoNPF1uA T9c+LJ5xfMBrI9pkNWiiMCC+o4BUQYj4xj8Ja9w5DwRpBfsKcvxXUwdo9LInm6Yaguj1 lHc+YbWNodxqBf6uCRRhVv4JzqUx08JK2AVX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Jm90OaxoBHr1dJcVUlRdIJ0uEeVgPPOpnGqSz1gtjnhDVfqGkguab0CwK5kQuokLOi boQ10nKm7W6UYWDlQMapX++7o3nHvF4ubCHvevJsZpMTm8RRNyefEYyZIqAwFYrTexxq 3Jmw98NeI+YVv1Nq0iys6+O2YjXoy1o/9d3Hk= MIME-Version: 1.0 Received: by 10.213.3.140 with SMTP id 12mr12949917ebn.20.1260104022548; Sun, 06 Dec 2009 04:53:42 -0800 (PST) From: Sebastien Mondet Date: Sun, 6 Dec 2009 13:53:21 +0100 Message-ID: <42eabd860912060453i2e8523f6s4985cca429b77ed1@mail.gmail.com> Subject: $PATH with double slashes parsing bug To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001517491f56a4e8e4047a0ed45b X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) --001517491f56a4e8e4047a0ed45b Content-Type: text/plain; charset=UTF-8 Hi, I discovered this strange behavior of eshell in emacs 23.1.1 (on MacOSX and Debian Lenny, both built from source, launched with '-q'). It seems that the presence of two slashes ("//") in a path breaks the search: Example: ~ $ export PATH=/usr//bin ~ $ which m4 which: no m4 in (/usr//bin) ~ $ export PATH=/usr/bin ~ $ which m4 /usr/bin/m4 ~ $ I mailed this to johnw@gnu.org (maintainer of eshell) who told me that it seems to be an Emacs issue. Cheers, Sebastien Mondet http://seb.mondet.org --001517491f56a4e8e4047a0ed45b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I discovered this strange behavio= r of eshell in emacs 23.1.1 (on MacOSX and Debian Lenny, both built from so= urce, launched with '-q').

It seems that the presence of two= slashes ("//") in a path breaks the search:

Example:

~ $ export PATH=3D/usr//bin
~ $ which m4
which: = no m4 in (/usr//bin)
~ $ export PATH=3D/usr/bin
~ $ which m4
/usr/= bin/m4
~ $


I mailed this to johnw@gnu.org (maintainer of eshell) who told me that it seems to be a= n Emacs issue.

Cheers,

Sebastien Mondet
http://seb.mondet.org


--001517491f56a4e8e4047a0ed45b-- From cyd@stupidchicken.com Sun Dec 6 11:06:35 2009 Received: (at 5134-done) by emacsbugs.donarmstrong.com; 6 Dec 2009 19:06:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.6 required=4.0 tests=AWL,FOURLA,STOCKLIKE,SUBJMONEY autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po38.its.yale.edu (pantheon-po38.its.yale.edu [130.132.50.97]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB6J6YHl000420 for <5134-done@emacsbugs.donarmstrong.com>; Sun, 6 Dec 2009 11:06:35 -0800 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po38.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nB6J6SMd027372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 6 Dec 2009 14:06:28 -0500 Received: by furry (Postfix, from userid 1000) id 21CE0C071; Sun, 6 Dec 2009 14:06:28 -0500 (EST) From: Chong Yidong To: Sebastien Mondet Cc: 5134-done@debbugs.gnu.org Subject: Re: $PATH with double slashes parsing bug Date: Sun, 06 Dec 2009 14:06:28 -0500 Message-ID: <87638jsz0r.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > I discovered this strange behavior of eshell in emacs 23.1.1 (on MacOSX and > Debian Lenny, both built from source, launched with '-q'). > > It seems that the presence of two slashes ("//") in a path breaks the > search: > > Example: > > ~ $ export PATH=/usr//bin > ~ $ which m4 > which: no m4 in (/usr//bin) > ~ $ export PATH=/usr/bin > ~ $ which m4 > /usr/bin/m4 > ~ $ I can reproduce it in the Emacs 23.1 release. The bug already seems to be fixed in the repository (to be 23.2). Thanks for the bug report, though. From unknown Thu Jun 19 14:04:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 04 Jan 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator