From unknown Sun Jun 22 07:53:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5134: $PATH with double slashes parsing bug Reply-To: Sebastien Mondet , 5134@debbugs.gnu.org Resent-From: Sebastien Mondet Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 06 Dec 2009 12:55:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 5134 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126010403217222 (code B ref -1); Sun, 06 Dec 2009 12:55:05 +0000 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> 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 unknown Sun Jun 22 07:53:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Sebastien Mondet Subject: bug#5134 closed by Chong Yidong (Re: $PATH with double slashes parsing bug) Message-ID: References: <87638jsz0r.fsf@stupidchicken.com> <42eabd860912060453i2e8523f6s4985cca429b77ed1@mail.gmail.com> X-Emacs-PR-Message: they-closed 5134 X-Emacs-PR-Package: emacs Reply-To: 5134@debbugs.gnu.org Date: Sun, 06 Dec 2009 19:15:19 +0000 Content-Type: multipart/mixed; boundary="----------=_1260126919-1402-1" This is a multi-part message in MIME format... ------------=_1260126919-1402-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #5134: $PATH with double slashes parsing bug It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 5134: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5134 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1260126919-1402-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1260126919-1402-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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-- ------------=_1260126919-1402-1--