From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes Date: Fri, 03 Nov 2023 13:35:46 +0100 Message-ID: References: <83pm0r71e8.fsf@gnu.org> <83jzqz70xb.fsf@gnu.org> <83fs1n6o50.fsf@gnu.org> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15635"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66903@debbugs.gnu.org, darkfeline@felesatra.moe To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 03 13:36:57 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qytQ1-0003nk-EF for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Nov 2023 13:36:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qytPY-0001bB-9n; Fri, 03 Nov 2023 08:36:28 -0400 Original-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 ) id 1qytPW-0001aq-Ur for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2023 08:36:27 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qytPW-0003s6-LY for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2023 08:36:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qytQ6-0000v9-6E for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2023 08:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Nov 2023 12:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66903 X-GNU-PR-Package: emacs Original-Received: via spool by 66903-submit@debbugs.gnu.org id=B66903.16990149943502 (code B ref 66903); Fri, 03 Nov 2023 12:37:02 +0000 Original-Received: (at 66903) by debbugs.gnu.org; 3 Nov 2023 12:36:34 +0000 Original-Received: from localhost ([127.0.0.1]:57258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qytPX-0000uK-LJ for submit@debbugs.gnu.org; Fri, 03 Nov 2023 08:36:33 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:43800 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qytPV-0000uB-8L for 66903@debbugs.gnu.org; Fri, 03 Nov 2023 08:36:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1699014949; bh=0SVDXeA3kIbT5OymIY6pLUziSj4Tp4EOHFuiQMHpjcs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=OsJTLk8+/756G1mvE13jPImTSf+uajyjxlcvrN1wIkeUXoAsHFiNPYjRPlTJa/xiL OHe4Vye97S9XmVvQvrPDIKZwdOM/PyZfb/oofUrXY80RntBm6HIDbcoZtZz24vUbmL Rmd2faOOtg5Vpacznib2i4FQxo/d1Q8MbGy8PbZlOsMhrxgW3MMf03/i4ZLCFAdDZY Ix0IFXlFvNy6JFeh+ItP4YNntmjWRStDvmAZgrjxizgyCgH7M0JrEQeDjS96siNhv5 geLBp8goPrGCa6PA+iVfPbs90NVeULusiIOi3Ad/2cCAoBt+jN9n/mvAZxwWYAYgi9 0XYponrw76W5A== In-Reply-To: <83fs1n6o50.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Nov 2023 14:02:19 +0200") X-Hashcash: 1:20:231103:eliz@gnu.org::766D0SJQLLPr+2i5:uj+ X-Hashcash: 1:20:231103:66903@debbugs.gnu.org::SJ33TM+G0xVLz5Ve:1pjb X-Hashcash: 1:20:231103:darkfeline@felesatra.moe::t1uiimDFrWdB2jF+:22RQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273706 Archived-At: Eli Zaretskii writes: >> From: Eshel Yaron >> Cc: Allen Li , 66903@debbugs.gnu.org >> Date: Fri, 03 Nov 2023 09:35:26 +0100 >> >> Eli Zaretskii writes: >> >> > I think we disagree about what should be fixed: the value of >> > default-directory or the directory to which "cd ~//bin" switches. >> >> IIUC what you're implying here is that "cd ~//bin" should actually >> switch the shell's current directory to /bin instead of ~/bin, is that >> right? > > Yes. > >> I just wanted to note that this is not really an option with M-x shell, >> because it is the shell, and not Emacs, that interprets "cd" and changes >> directory. > > You assume that shell.el must send everything the user types verbatim > to the shell? No, not "must" and not "everything", but if you think about it intercepting "cd" and altering its argument would make `M-x shell` incompatible with other shell interfaces, breaking valid command lines in weird ways. Does that make sense?