GNU logs - #66903, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes
Resent-From: Allen Li <darkfeline@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 03 Nov 2023 00:16:01 +0000
Resent-Message-ID: <handler.66903.B.169897054327195 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 66903
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 66903 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.169897054327195
          (code B ref -1); Fri, 03 Nov 2023 00:16:01 +0000
Received: (at submit) by debbugs.gnu.org; 3 Nov 2023 00:15:43 +0000
Received: from localhost ([127.0.0.1]:56420 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qyhqd-00074U-Tj
	for submit <at> debbugs.gnu.org; Thu, 02 Nov 2023 20:15:43 -0400
Received: from lists.gnu.org ([2001:470:142::17]:54556)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <darkfeline@HIDDEN>) id 1qyhqY-000748-Eo
 for submit <at> debbugs.gnu.org; Thu, 02 Nov 2023 20:15:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <darkfeline@HIDDEN>)
 id 1qyhpt-0007lo-Fu
 for bug-gnu-emacs@HIDDEN; Thu, 02 Nov 2023 20:14:53 -0400
Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <darkfeline@HIDDEN>)
 id 1qyhpr-0007wl-6U
 for bug-gnu-emacs@HIDDEN; Thu, 02 Nov 2023 20:14:53 -0400
Received: by mail-lj1-x22a.google.com with SMTP id
 38308e7fff4ca-2c508e76eb4so3801991fa.0
 for <bug-gnu-emacs@HIDDEN>; Thu, 02 Nov 2023 17:14:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=felesatra-moe.20230601.gappssmtp.com; s=20230601; t=1698970488; x=1699575288;
 darn=gnu.org; 
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=cX8IA63u3bBeOm9jQsfh8gj47wVuE2ydweAefcykH9s=;
 b=py+h14dLOOE7Fw4dcOZ8UepezVtuq3yszW3JEZvi6SZ8+aHmbjTGt2nabH/skasnr5
 ypFaqkhMdPDVzR4ox8utUq2Bkq0K7sniqXTUkWp1mz1PZM5HHcZV8dcpXCl4s1hUy6h+
 wp183yNyYFKbU0F31M/7h/dfoDJER1HTQ/xlZ5pxd2WtYwbOBDKu9LR6si5LNyjZNmze
 S3wWxukIG1jfn1cuP4sHe0X6BxsnSez1IBXK5sSSIeSNvTqMKYl+6bXM8DhTfV5D8crp
 qy2qIpL9HZNBoNQouJV7OwXPWjTKWer4sHw80To/+q1fMXIkhurHydBOpZVx4GdhoUpe
 Fzew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698970488; x=1699575288;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=cX8IA63u3bBeOm9jQsfh8gj47wVuE2ydweAefcykH9s=;
 b=rjqTIg+DtEFFzOjRtpDejoskdg3WZ0j9nJsG4Kn8nz/XlHwEp0y34mjvtJJ4IqwZy1
 E7kAdo0bRTmI2NibGWlLuVrhicG0zxu5a43xQjsqKC2aDI9GFBx9IT/SyhPA2hHbcOhi
 eDKmpmT3x8Uv7wZudYg4oRrjhWVoyW0zbP9hm+ceslX+LfZcAVIBb5KgquJhkkfpnGD3
 6JeObnW/8jrIJKLKg+XCCmiZdIXksSgPkWl1klTQrDTc7srkEFW1qcJRDKV91GkQ9OQM
 RySlFjd/bUoUK7yUHhhX2hA98O0jJJJaEN0kBREhOM44mBl24NHQk64OywZyDrfAGpFj
 UnXQ==
X-Gm-Message-State: AOJu0YzTC+TPdRLmFS2maFzPUNjtJ5DUwXFaGpTUJZk+vo+EIuXxF2FK
 /jBXhiwGq7KKIx4GrnNYZWh4CRizLZ1pdA+6zUKXKZKuWffsDruviiA=
X-Google-Smtp-Source: AGHT+IFJ58WoPjao7J9iVIQUNP/UbY4GPR9aEGhSeAE9tSUrrwdey0TpHER/EtyO0yw/69dVzhvskdMzPwHTcT4n6oU=
X-Received: by 2002:a2e:7a19:0:b0:2c0:196c:e38f with SMTP id
 v25-20020a2e7a19000000b002c0196ce38fmr14761658ljc.1.1698970487423; Thu, 02
 Nov 2023 17:14:47 -0700 (PDT)
MIME-Version: 1.0
From: Allen Li <darkfeline@HIDDEN>
Date: Thu, 2 Nov 2023 17:14:36 -0700
Message-ID: <CADbSrJz6a2xudEBbwhDW=OTKTMWQux=Mpc3dyskJ5cESOo4h8w@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000006316e20609346426"
Received-SPF: pass client-ip=2a00:1450:4864:20::22a;
 envelope-from=darkfeline@HIDDEN; helo=mail-lj1-x22a.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--0000000000006316e20609346426
Content-Type: text/plain; charset="UTF-8"

Reproduce:

(assume ~/bin exists)

1. M-x shell RET
2. cd ~//bin RET
3. M-: default-directory RET

Expected:

default-directory is ~/bin

Actual:

default-directory is /bin

It seems like the directory tracker uses Emacs's convention for double
slashes "resetting" a path to root, but most shells treat double slashes
the same as single slashes.

It looks like this should be fixed in `shell-cd` (which should also fix
`shell-process-pushd`) by implementing "custom" path handling (compared
to Emacs default path handling behavior).

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37,
 cairo version 1.16.0) of 2023-09-03, modified by Debian built on
 kokoro-ubuntu
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Debian GNU/Linux rodete

--0000000000006316e20609346426
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Reproduce:<br><br>(assume ~/bin exists)<br><br>1. M-x shel=
l RET<br>2. cd ~//bin RET<br>3. M-: default-directory RET<br><br>Expected:<=
br><br>default-directory is ~/bin<br><br>Actual:<br><br>default-directory i=
s /bin<br><br>It seems like the directory tracker uses Emacs&#39;s conventi=
on for double<br>slashes &quot;resetting&quot; a path to root, but most she=
lls treat double slashes<br>the same as single slashes.<br><br>It looks lik=
e this should be fixed in `shell-cd` (which should also fix<br>`shell-proce=
ss-pushd`) by implementing &quot;custom&quot; path handling (compared<br>to=
 Emacs default path handling behavior).<br><br>In GNU Emacs 29.1 (build 1, =
x86_64-pc-linux-gnu, GTK+ Version 3.24.37,<br>=C2=A0cairo version 1.16.0) o=
f 2023-09-03, modified by Debian built on<br>=C2=A0kokoro-ubuntu<br>Windowi=
ng system distributor &#39;The X.Org Foundation&#39;, version 11.0.12101007=
<br>System Description: Debian GNU/Linux rodete<br></div>

--0000000000006316e20609346426--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Allen Li <darkfeline@HIDDEN>
Subject: bug#66903: Acknowledgement (29.1; shell-mode directory tracking
 incorrectly handles double slashes)
Message-ID: <handler.66903.B.169897054327195.ack <at> debbugs.gnu.org>
References: <CADbSrJz6a2xudEBbwhDW=OTKTMWQux=Mpc3dyskJ5cESOo4h8w@HIDDEN>
X-Gnu-PR-Message: ack 66903
X-Gnu-PR-Package: emacs
Reply-To: 66903 <at> debbugs.gnu.org
Date: Fri, 03 Nov 2023 00:16:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 66903 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
66903: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66903
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 03 Nov 2023 07:17:01 +0000
Resent-Message-ID: <handler.66903.B66903.16989958154516 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 66903
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Allen Li <darkfeline@HIDDEN>
Cc: 66903 <at> debbugs.gnu.org
Received: via spool by 66903-submit <at> debbugs.gnu.org id=B66903.16989958154516
          (code B ref 66903); Fri, 03 Nov 2023 07:17:01 +0000
Received: (at 66903) by debbugs.gnu.org; 3 Nov 2023 07:16:55 +0000
Received: from localhost ([127.0.0.1]:56658 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qyoQF-0001Ah-El
	for submit <at> debbugs.gnu.org; Fri, 03 Nov 2023 03:16:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52116)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1qyoQA-0001AO-3D; Fri, 03 Nov 2023 03:16:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qyoPV-0006k0-8K; Fri, 03 Nov 2023 03:16:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Qped4HY4qfJZr+OTcKkXBSMYi4D7X5xaHgM0Whteang=; b=mufoZTgZQ8Pa
 4CrVXEV9WJdayG8fH2TfA+sM/g4qbGKwYnkJDkcqP1UwyU+t97tT4xesC3PkriYFhARyP0haBnIoH
 EyUWED+hgF2tPKooFdsfrRvi2SbYoPyqC0e7ZIMrkeFO99+tlRLavcooiCUKW5UZHzf7nBdOA2RNc
 yjfaQqgmok89E1mxVfcWGZTien37U7XO+8lqNFFXIi4h33mjjzkfp4tGZYsM6CcCA57L0UO4w2KjR
 vvM/RdZLDIP7DOa3d25zeNh1IA0Q1sqSJxMHdf1kzIBvU03fGw4ObFRTgXEOHJnYTPn5ZTMkNTQ9a
 XLAvuyxCuFTS3k9b9X23eA==;
Date: Fri, 03 Nov 2023 09:15:59 +0200
Message-Id: <83pm0r71e8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <CADbSrJz6a2xudEBbwhDW=OTKTMWQux=Mpc3dyskJ5cESOo4h8w@HIDDEN>
 (message from Allen Li on Thu, 2 Nov 2023 17:14:36 -0700)
References: <CADbSrJz6a2xudEBbwhDW=OTKTMWQux=Mpc3dyskJ5cESOo4h8w@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

severity 66903 wishlist
thanks

> From: Allen Li <darkfeline@HIDDEN>
> Date: Thu, 2 Nov 2023 17:14:36 -0700
> 
> (assume ~/bin exists)
> 
> 1. M-x shell RET
> 2. cd ~//bin RET
> 3. M-: default-directory RET
> 
> Expected:
> 
> default-directory is ~/bin
> 
> Actual:
> 
> default-directory is /bin

This is the standard Emacs behavior: double slash makes everything
before that ignored.

> It seems like the directory tracker uses Emacs's convention for double
> slashes "resetting" a path to root, but most shells treat double slashes
> the same as single slashes.

"M-x shell" is not a shell, it is an Emacs interface to a shell.
Thus, it should be free to implement behavior not present in the
shell, if we consider it convenient for Emacs users.

> It looks like this should be fixed in `shell-cd` (which should also fix
> `shell-process-pushd`) by implementing "custom" path handling (compared
> to Emacs default path handling behavior).

This is not a bug.  I'm okay with adding a new optional feature that
would disable the above behavior, but it must be off by default.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 3 Nov 2023 07:17:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 03 03:17:00 2023
Received: from localhost ([127.0.0.1]:56660 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qyoQJ-0001Ao-KX
	for submit <at> debbugs.gnu.org; Fri, 03 Nov 2023 03:17:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52116)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1qyoQA-0001AO-3D; Fri, 03 Nov 2023 03:16:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qyoPV-0006k0-8K; Fri, 03 Nov 2023 03:16:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Qped4HY4qfJZr+OTcKkXBSMYi4D7X5xaHgM0Whteang=; b=mufoZTgZQ8Pa
 4CrVXEV9WJdayG8fH2TfA+sM/g4qbGKwYnkJDkcqP1UwyU+t97tT4xesC3PkriYFhARyP0haBnIoH
 EyUWED+hgF2tPKooFdsfrRvi2SbYoPyqC0e7ZIMrkeFO99+tlRLavcooiCUKW5UZHzf7nBdOA2RNc
 yjfaQqgmok89E1mxVfcWGZTien37U7XO+8lqNFFXIi4h33mjjzkfp4tGZYsM6CcCA57L0UO4w2KjR
 vvM/RdZLDIP7DOa3d25zeNh1IA0Q1sqSJxMHdf1kzIBvU03fGw4ObFRTgXEOHJnYTPn5ZTMkNTQ9a
 XLAvuyxCuFTS3k9b9X23eA==;
Date: Fri, 03 Nov 2023 09:15:59 +0200
Message-Id: <83pm0r71e8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Allen Li <darkfeline@HIDDEN>
In-Reply-To: <CADbSrJz6a2xudEBbwhDW=OTKTMWQux=Mpc3dyskJ5cESOo4h8w@HIDDEN>
 (message from Allen Li on Thu, 2 Nov 2023 17:14:36 -0700)
Subject: Re: bug#66903: 29.1;
 shell-mode directory tracking incorrectly handles double slashes
References: <CADbSrJz6a2xudEBbwhDW=OTKTMWQux=Mpc3dyskJ5cESOo4h8w@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
Cc: 66903 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

severity 66903 wishlist
thanks

> From: Allen Li <darkfeline@HIDDEN>
> Date: Thu, 2 Nov 2023 17:14:36 -0700
> 
> (assume ~/bin exists)
> 
> 1. M-x shell RET
> 2. cd ~//bin RET
> 3. M-: default-directory RET
> 
> Expected:
> 
> default-directory is ~/bin
> 
> Actual:
> 
> default-directory is /bin

This is the standard Emacs behavior: double slash makes everything
before that ignored.

> It seems like the directory tracker uses Emacs's convention for double
> slashes "resetting" a path to root, but most shells treat double slashes
> the same as single slashes.

"M-x shell" is not a shell, it is an Emacs interface to a shell.
Thus, it should be free to implement behavior not present in the
shell, if we consider it convenient for Emacs users.

> It looks like this should be fixed in `shell-cd` (which should also fix
> `shell-process-pushd`) by implementing "custom" path handling (compared
> to Emacs default path handling behavior).

This is not a bug.  I'm okay with adding a new optional feature that
would disable the above behavior, but it must be off by default.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes
Resent-From: Allen Li <darkfeline@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 03 Nov 2023 07:24:02 +0000
Resent-Message-ID: <handler.66903.B66903.16989962025140 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 66903
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 66903 <at> debbugs.gnu.org
Received: via spool by 66903-submit <at> debbugs.gnu.org id=B66903.16989962025140
          (code B ref 66903); Fri, 03 Nov 2023 07:24:02 +0000
Received: (at 66903) by debbugs.gnu.org; 3 Nov 2023 07:23:22 +0000
Received: from localhost ([127.0.0.1]:56671 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qyoWX-0001Kq-U4
	for submit <at> debbugs.gnu.org; Fri, 03 Nov 2023 03:23:22 -0400
Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:39294)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <darkfeline@HIDDEN>) id 1qyoWV-0001Kb-HX
 for 66903 <at> debbugs.gnu.org; Fri, 03 Nov 2023 03:23:20 -0400
Received: by mail-lj1-x236.google.com with SMTP id
 38308e7fff4ca-2c519eab81fso3959981fa.1
 for <66903 <at> debbugs.gnu.org>; Fri, 03 Nov 2023 00:22:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=felesatra-moe.20230601.gappssmtp.com; s=20230601; t=1698996158; x=1699600958;
 darn=debbugs.gnu.org; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=5XOHnPQoIQMC6oLcMiFeyvAfDBHca+XO1DzGqZfIdNY=;
 b=Aer2/uvbtuk4qWsTdlFJBjitQfTyLa47gMHK2HJUGKM9kkIxqVl9Aq3cgbvaQPZwtv
 4etBNXKuCgYullCbafqQQMSKGo6v+jpQ02VwTDLx79sElBHrlOETuSeIMoZ6fuVFCZ1S
 z/lL5cwY9dIruyefre+k4YeCV76xJ54fLuWAqjOptOXbLuESKUfDC+UaKuud2cuuMoXy
 9m0LFWROP5Z9S6UpfonQay+jJ8GAkxXdAIU58gCAq4aOCzISNIeB2jLS0116woMZ3RQf
 XSC0dzGGCdVteG4EagGusUsnLRlXvDYt0kT3nyZADJJQ5okuhZQiagdBbSPNDGPgbrvd
 TFVQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1698996158; x=1699600958;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=5XOHnPQoIQMC6oLcMiFeyvAfDBHca+XO1DzGqZfIdNY=;
 b=MbWgEu/xxXP0xib28u48svRQ4sIWw/Am8bxc/6cdXXn8JJRwxOQs5jTBmk2G/4RBpD
 ck8F4kOFLelthVgIzP+lr6FY96ckF8tClSjoVToIoNke0/fbV8AlJbIx343iCzMbUUwG
 TFrNRN0e2w40LsqWq8Wyk85HJmFq/Swv0RmkvlnBLZp7oeCoikZQlLXXxwp7OyJM1PvA
 gYjQm+NJfvFMNv8LIypFZieuAKFwrFNg3SqlO0mURCS0pz9WsiFqo24Gmkl4FFq1QWrv
 7GgIJEYf7r6Yg2EYMAqGSqgn2cqwF6LhxuTjbeHpQEScprN/hIw+9NM/zVcu9n6HED0k
 t5pQ==
X-Gm-Message-State: AOJu0YwWLaN74qzE+W2W2QMK0kQihDnnWVH3OrdTzdEfNRfb6TR8P8JR
 /DhH32zPYoCgbc209dkpyg93UvEHCAjhufrmfg8aLb0zVmg9UpsJUBs=
X-Google-Smtp-Source: AGHT+IGzP0Z+7PrWnal7lpPnyjq4a9n2r95MSB/ZNljRKcNuGD2vgR9DVutAOlKHzFesJeGB7uvBo9mFtHNFLiHdHBg=
X-Received: by 2002:a2e:9a89:0:b0:2be:5485:4a99 with SMTP id
 p9-20020a2e9a89000000b002be54854a99mr14883885lji.4.1698996157980; Fri, 03 Nov
 2023 00:22:37 -0700 (PDT)
MIME-Version: 1.0
References: <CADbSrJz6a2xudEBbwhDW=OTKTMWQux=Mpc3dyskJ5cESOo4h8w@HIDDEN>
 <83pm0r71e8.fsf@HIDDEN>
In-Reply-To: <83pm0r71e8.fsf@HIDDEN>
From: Allen Li <darkfeline@HIDDEN>
Date: Fri, 3 Nov 2023 00:22:26 -0700
Message-ID: <CADbSrJyviDJA9fAYQH5vHKRDwTfoz39DQHjVDwyMxAT11xs08g@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000078b3ed06093a5ee3"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000078b3ed06093a5ee3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 3, 2023 at 12:16=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:

>
> "M-x shell" is not a shell, it is an Emacs interface to a shell.
> Thus, it should be free to implement behavior not present in the
> shell, if we consider it convenient for Emacs users.
>

The behavior it is supposed to implement is that it tracks the working
directory of the shell.
Currently, it fails to do so for most shells that a user would use.
In fact, it fails to do so for the default value `/bin/bash`.


> > It looks like this should be fixed in `shell-cd` (which should also fix
> > `shell-process-pushd`) by implementing "custom" path handling (compared
> > to Emacs default path handling behavior).
>
> This is not a bug.  I'm okay with adding a new optional feature that
> would disable the above behavior, but it must be off by default.
>

This is absolutely a bug.  The feature, where shell-mode attempts to track
the working
directory of its subshell, fails to work for most shells in existence
(e.g., derivatives of POSIX sh, csh, zsh, etc.) and including the default
shell.

I agree it may be an option, but I disagree that it should be off by
default, given that the
default configured shell Bash requires it.

--00000000000078b3ed06093a5ee3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Fri, Nov 3, 2023 at 12:16=E2=80=AFAM E=
li Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote=
:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi=
ng-left:1ex">
<br>
&quot;M-x shell&quot; is not a shell, it is an Emacs interface to a shell.<=
br>
Thus, it should be free to implement behavior not present in the<br>
shell, if we consider it convenient for Emacs users.<br></blockquote><div><=
br></div><div>The behavior it is supposed to implement is that it tracks th=
e working directory of the shell.</div><div>Currently, it fails to do so fo=
r most shells that a user would use.</div><div>In fact, it fails to do so f=
or the default value `/bin/bash`.</div><div>=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">
&gt; It looks like this should be fixed in `shell-cd` (which should also fi=
x<br>
&gt; `shell-process-pushd`) by implementing &quot;custom&quot; path handlin=
g (compared<br>
&gt; to Emacs default path handling behavior).<br>
<br>
This is not a bug.=C2=A0 I&#39;m okay with adding a new optional feature th=
at<br>
would disable the above behavior, but it must be off by default.<br></block=
quote><div><br></div><div>This is absolutely a bug.=C2=A0 The feature, wher=
e shell-mode attempts to track the working=C2=A0</div><div>directory of its=
 subshell, fails to work for most shells in existence=C2=A0</div><div>(e.g.=
, derivatives of POSIX sh, csh, zsh, etc.) and including the default shell.=
=C2=A0<br><br>I agree it may be an option, but I disagree that it should be=
 off by default, given that the=C2=A0</div><div>default configured shell Ba=
sh requires it.</div></div></div>

--00000000000078b3ed06093a5ee3--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 03 Nov 2023 07:27:01 +0000
Resent-Message-ID: <handler.66903.B66903.16989964175476 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 66903
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Allen Li <darkfeline@HIDDEN>
Cc: 66903 <at> debbugs.gnu.org
Received: via spool by 66903-submit <at> debbugs.gnu.org id=B66903.16989964175476
          (code B ref 66903); Fri, 03 Nov 2023 07:27:01 +0000
Received: (at 66903) by debbugs.gnu.org; 3 Nov 2023 07:26:57 +0000
Received: from localhost ([127.0.0.1]:56681 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qyoa0-0001QF-Qc
	for submit <at> debbugs.gnu.org; Fri, 03 Nov 2023 03:26:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36170)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qyoZz-0001Q3-7l
 for 66903 <at> debbugs.gnu.org; Fri, 03 Nov 2023 03:26:55 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qyoZJ-0001a1-Mb; Fri, 03 Nov 2023 03:26:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=T7cNvI5W4oMELps2P3KCv6sBNsY52nQSGDXbDE88S6Y=; b=RxMaTi+Exw4gx1NLkY04
 uhdllnZH/w2zEXZw4xWPzbkDjDOJpuPIIswEFiPUzJJlPdP4mBTavXALV5Zvp5M4WD/f26kjMiDJB
 InuQO0xuPEth2DdVyJ/YXJDvSvOzV2AiDs3sLxXm/qRTdmyzQJSn233nHge0visc+5ZE4NKpubJnO
 ywCbd50L19blNriJsOwB7VavetDKg9ll3HeVcybLW7t5nXbxqwMRuhTPUZgNrSAShWgvOzkE935hE
 KU5QKJpfw1ik+5VLEwYoJSDy7KcyGBei/66v9HeA/dYHrsEAlF/D1qXx2Tg4iSc9PJsPAKhye5wz/
 KW1XThp7xUPfLg==;
Date: Fri, 03 Nov 2023 09:26:08 +0200
Message-Id: <83jzqz70xb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <CADbSrJyviDJA9fAYQH5vHKRDwTfoz39DQHjVDwyMxAT11xs08g@HIDDEN>
 (message from Allen Li on Fri, 3 Nov 2023 00:22:26 -0700)
References: <CADbSrJz6a2xudEBbwhDW=OTKTMWQux=Mpc3dyskJ5cESOo4h8w@HIDDEN>
 <83pm0r71e8.fsf@HIDDEN>
 <CADbSrJyviDJA9fAYQH5vHKRDwTfoz39DQHjVDwyMxAT11xs08g@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Allen Li <darkfeline@HIDDEN>
> Date: Fri, 3 Nov 2023 00:22:26 -0700
> Cc: 66903 <at> debbugs.gnu.org
> 
> On Fri, Nov 3, 2023 at 12:16 AM Eli Zaretskii <eliz@HIDDEN> wrote:
> 
>  "M-x shell" is not a shell, it is an Emacs interface to a shell.
>  Thus, it should be free to implement behavior not present in the
>  shell, if we consider it convenient for Emacs users.
> 
> The behavior it is supposed to implement is that it tracks the working directory of the shell.
> Currently, it fails to do so for most shells that a user would use.
> In fact, it fails to do so for the default value `/bin/bash`.
>  
>  > It looks like this should be fixed in `shell-cd` (which should also fix
>  > `shell-process-pushd`) by implementing "custom" path handling (compared
>  > to Emacs default path handling behavior).
> 
>  This is not a bug.  I'm okay with adding a new optional feature that
>  would disable the above behavior, but it must be off by default.
> 
> This is absolutely a bug.  The feature, where shell-mode attempts to track the working 
> directory of its subshell, fails to work for most shells in existence 
> (e.g., derivatives of POSIX sh, csh, zsh, etc.) and including the default shell. 
> 
> I agree it may be an option, but I disagree that it should be off by default, given that the 
> default configured shell Bash requires it.

I think we disagree about what should be fixed: the value of
default-directory or the directory to which "cd ~//bin" switches.





Last modified: Fri, 3 Nov 2023 07:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.