From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#65685: 29.1; Inconsistent behavior of quoted file name "/:~" across platforms Date: Fri, 1 Sep 2023 12:22:09 -0700 Message-ID: <156539f1-a26e-848b-16b9-8c12ea46f321@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33007"; mail-complaints-to="usenet@ciao.gmane.io" To: 65685@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 01 21:22:59 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 1qc9jP-0008MY-G9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Sep 2023 21:22:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc9jJ-0003vY-Uq; Fri, 01 Sep 2023 15:22:53 -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 1qc9jJ-0003tI-0o for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 15:22:53 -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 1qc9jI-0001Ob-PI for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 15:22:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qc9jS-0000n9-1m for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 15:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Sep 2023 19:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65685 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16935961513002 (code B ref -1); Fri, 01 Sep 2023 19:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Sep 2023 19:22:31 +0000 Original-Received: from localhost ([127.0.0.1]:33962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qc9iw-0000mL-QX for submit@debbugs.gnu.org; Fri, 01 Sep 2023 15:22:31 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:59198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qc9iv-0000m9-9U for submit@debbugs.gnu.org; Fri, 01 Sep 2023 15:22:29 -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 1qc9ig-0001HO-5M for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 15:22:14 -0400 Original-Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qc9id-0001FT-Ne for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 15:22:13 -0400 Original-Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-5654051b27fso1667678a12.0 for ; Fri, 01 Sep 2023 12:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693596130; x=1694200930; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=dsU8p3af9fJaXjqpIgPelDkBhHVbROGzmVQxnMd6Qbc=; b=Qpwa4tfPuHdzmWPId4NomS8gu7YrLR+ueqgLrGt4WTEIy+0AGkVMTuOpFwGkNfZr36 dvH/Vwe1VUjldyJ9aQgOGu+kYPPQmu7nKAGWfkXUDATx6TwfLmIiJTIbzJByBj7/8m4j /FeFQvy3Da0+V9XqviPLYUR0xl9WlHapDrsolk9OXMzRPi24C8Z0KolJKSOSxqxI8k8m s/wkZfUi/r/dY115T4n/EJbtGe8MCDyUm7MqaAjIJE05XF2z/f12wtWBuOIe3RmJgcSb qMIrQ//SBEWjPpWCodS3yS/VWTUQCAiRiOe+tffQ0y6roQuCJ9Nju7ariPhiuFr85f5T beYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693596130; x=1694200930; h=content-transfer-encoding:subject:from:to:content-language :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=dsU8p3af9fJaXjqpIgPelDkBhHVbROGzmVQxnMd6Qbc=; b=ZP4Oyi7knPjFMN++Fh1+RFVRV64LKiR/qqLwMqdACxHHdIyrcbs75TxgqotH5VI5SB yHNMuhy7/eh/Z8CIoYyJB1cL//lXIMzLmdvH1GqV9Hp6Fy1ornByf2zZsPQGZtluGiWp q46qHWUJv7+6wn4Hp1uMQUjIHeA1RflstU2XrWBGw/uEg6W4qi+yGiwVCZIpCsD3VaFK cWnOcayv76mcPPDP0++OjHn0Rah0TMcJwgg9uOm9gUdAqGRwmrB8m5W9Z20utxFeVI/x hRfnybN814c2TaPeEKJXPNPY0dGSoXfHr0ZF3Y2U4Tjpa+se9W0sQ/LnchTiRkb8E043 0I2w== X-Gm-Message-State: AOJu0Yx447SpZys6riFOUtA5ZWdRa9Mc0dRu06d0fUIq+CYoLlyX4YiP R6u12xQFS/1O4zhfuny/Z2WtD0a+sAk= X-Google-Smtp-Source: AGHT+IEkioKh+ra/pwPkR7VY87GL+xF4roAR7xPqwbuDaQiD4muGLRwrdsal9n3rMNe2Ym+6P69ufg== X-Received: by 2002:a05:6a21:6d8a:b0:14d:d636:ed3a with SMTP id wl10-20020a056a216d8a00b0014dd636ed3amr4926977pzb.23.1693596130215; Fri, 01 Sep 2023 12:22:10 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id f10-20020a639c0a000000b0056001f43726sm3088831pge.92.2023.09.01.12.22.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Sep 2023 12:22:09 -0700 (PDT) X-Mozilla-News-Host: news://news.gmane.io:119 Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=jporterbugs@gmail.com; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:268909 Archived-At: To see this in action, run 'emacs -Q "/:~"' on both GNU/Linux and MS-Windows.[1] On GNU/Linux, this opens a dired buffer for the user's home directory. On MS-Windows, it opens a buffer for a new file named tilde. According to the Emacs manual: > ‘/:’ can also prevent ‘~’ from being treated as a special character > for a user’s home directory. For example, /:/tmp/~hack refers to a > file whose name is ~hack in directory /tmp. I'd interpret this to mean that the MS-Windows behavior is correct. However, the example doesn't specifically say what should happen when the tilde comes immediately after the "/:". On the very rare occasions you might need it, you can always spell "a file named tilde in the current directory" like "/:./~". This is relevant to some future Eshell changes I'm considering[2], where (I think) I'd like "/:~" to mean "the user's local home directory, even when default-directory is remote". In light of that, my selfish preference is that we keep the GNU/Linux behavior and standardize it across all systems. However, we could standardize the MS-Windows behavior instead; I'd then just have to call out the different Eshell semantics in the Eshell manual. [1] You can see this inconsistency with other commands too, like "M-x cd RET /:~ RET". [2] https://lists.gnu.org/archive/html/emacs-devel/2023-08/msg01244.html