From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes Date: Fri, 3 Nov 2023 03:43:35 -0700 Message-ID: References: <83pm0r71e8.fsf@gnu.org> <83jzqz70xb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d1c3c006093d2d1f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8267"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66903@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 03 11:44:44 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 1qyrfQ-0001w1-IQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Nov 2023 11:44:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyrfA-0004IT-Nt; Fri, 03 Nov 2023 06:44: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 1qyrf9-0004ID-Cf for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2023 06:44: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 1qyrf9-00024q-4P for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2023 06:44:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qyrfi-0003oF-7Y for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2023 06:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Nov 2023 10:45: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.169900827714595 (code B ref 66903); Fri, 03 Nov 2023 10:45:02 +0000 Original-Received: (at 66903) by debbugs.gnu.org; 3 Nov 2023 10:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:57057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qyrfF-0003nI-S6 for submit@debbugs.gnu.org; Fri, 03 Nov 2023 06:44:37 -0400 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:38336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qyrfA-0003n0-9N for 66903@debbugs.gnu.org; Fri, 03 Nov 2023 06:44:32 -0400 Original-Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c6eac9c053so6079611fa.1 for <66903@debbugs.gnu.org>; Fri, 03 Nov 2023 03:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20230601.gappssmtp.com; s=20230601; t=1699008227; x=1699613027; 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=LDEjesFb37WmUp8lYQ8SbqD6ZOfayEEG41hemPfV55g=; b=goZaLi9PTY9hgCdhquBL69TRh4DPVOissYwrQzRxcYIgzut+DeAUW3bps83lXUY4I/ FKi0Cyenqpoxu2zVWPsTB6iBXYIZOpEZ4PQ8rtFYKgGyHI9uigszCfLip8+B3Cjxel+u 59KR8T8aC9uQR0irQcR376tJhYo+vAb+/o95iKPS7+wSPDP0xHSTg66qMqeaXt83b1BZ LRn8/zCOVb5eKaJ+WKYoquckHZngMMR2PraDdDGN/sjCHc/cinW8YDzjPLWeAG+AvY/2 naybr1qMUuTeuUXO+oksWdfz/YerAkln3cwLb5e43NjVEtvFV0V+IhIk8lIVq6y1m1I6 5ymg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699008227; x=1699613027; 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=LDEjesFb37WmUp8lYQ8SbqD6ZOfayEEG41hemPfV55g=; b=K8YwhVBZuW4bwvpc8dq5lFw5XDA5uZRisY8od9XYS/9ZMEUe3VNP9zbpJU+3bY7CdS 3Tpo1OAwjU0a7kZdb9PkkXjoR8+gjngYwNZ/xjy4TFOsyVW38DWde8w1nmXYtH2uJjMT 4VI5yS/41c99iUPB+gFWYGZtzFkfRaNfr7K9U2KP5yB+AU3kQt5lhzE5K83KUYGfcuL7 A6y7ipDQ5JtXrq/yzL3peI86qOXfqvR5/p9HhsMOBpDLxDP/+oKDD4uWd0+ZPClXbSTT QU73mqaH460x6I1wmmC49Ue2avJ6CEvNsdtWaDSnj8D5PiaZdKd9onHUGvlNgtKe+3HZ h/Cg== X-Gm-Message-State: AOJu0YzpfcpcrCbiNITKgCANMj4G2q+E6w4el5kyMewhaqeZ5sCY01kw 0GXn63iCgltCuG66gBFfQrGLfI44JSyV5ORjDJLXmA== X-Google-Smtp-Source: AGHT+IF+wNvD53ephwzBd6womznxlzg2UD6+ct8D9O+kOjC49mlVSW/EXP4cUnyQ4XxMQRimbCB+NsY/aif88OS09rY= X-Received: by 2002:a2e:8296:0:b0:2c5:409:7005 with SMTP id y22-20020a2e8296000000b002c504097005mr14893681ljg.4.1699008226634; Fri, 03 Nov 2023 03:43:46 -0700 (PDT) In-Reply-To: <83jzqz70xb.fsf@gnu.org> 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:273702 Archived-At: --000000000000d1c3c006093d2d1f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Nov 3, 2023 at 12:26=E2=80=AFAM Eli Zaretskii wrote: > I think we disagree about what should be fixed: the value of > default-directory or the directory to which "cd ~//bin" switches. > Sorry, let me clarify Currently, `cd ~//bin` will cause the shell (Bash or similar) to change to ~/bin, and Emacs/shell-mode will change `default-directory` to `/bin`. This bug is saying that Emacs/shell-mode should change `default-directory` to `~/bin` by default, optionally with a user option that reverts to the current behavior in case the user has in fact explicitly configured to use a shell that interprets `cd ~//bin` to mean `cd /bin` (although I am not aware of any shells that do this (except eshell, which is not relevant to this issue)). I (mis?)interpreted your statement to mean that you think the current behavior is not a bug and should be the default (that Emacs/shell-mode should change `default-directory` to `/bin` even though the shell changes to ~/bin). --000000000000d1c3c006093d2d1f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Nov 3, 2023 at 12:26=E2=80=AFAM E= li Zaretskii <eliz@gnu.org> wrote= :
I think we disagree about what should be fixed: the value of
default-directory or the directory to which "cd ~//bin" switches.=

Sorry, let me clarify

Currently, `cd ~//bin` will cause the shell (Bash or similar) to c= hange=C2=A0to ~/bin, and Emacs/shell-mode will change `default-directory` t= o `/bin`.

This bug is saying that Emacs/shell-mode should change `de= fault-directory` to `~/bin` by default, optionally with a user option that = reverts to the current behavior in case the user has in fact explicitly con= figured to use a shell that interprets `cd ~//bin` to mean `cd /bin` (altho= ugh I am not aware of any shells that do this (except eshell, which is not = relevant to this issue)).

I (mis?)interpreted your statement to mean= that you think the current behavior is not a bug and should be the default= (that Emacs/shell-mode should change `default-directory` to `/bin` even th= ough the shell changes to ~/bin).
--000000000000d1c3c006093d2d1f--