From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#65431: 30.0.50; pcomplete should not quote everything in a file name Date: Mon, 21 Aug 2023 21:09:35 +0200 Message-ID: <87350ci55c.fsf@gmx.de> References: <87bkf0iizx.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7019"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65431@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 21 21:10:31 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 1qYAIJ-0001eW-DQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Aug 2023 21:10:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYAHt-0003vq-8v; Mon, 21 Aug 2023 15:10:05 -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 1qYAHo-0003v5-Db for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2023 15:10:00 -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 1qYAHo-0007zG-5L for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2023 15:10:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYAHq-0003H1-Ej for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2023 15:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Aug 2023 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65431 X-GNU-PR-Package: emacs Original-Received: via spool by 65431-submit@debbugs.gnu.org id=B65431.169264498712545 (code B ref 65431); Mon, 21 Aug 2023 19:10:02 +0000 Original-Received: (at 65431) by debbugs.gnu.org; 21 Aug 2023 19:09:47 +0000 Original-Received: from localhost ([127.0.0.1]:57840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYAHb-0003GH-0o for submit@debbugs.gnu.org; Mon, 21 Aug 2023 15:09:47 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:48779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYAHZ-0003G2-1V for 65431@debbugs.gnu.org; Mon, 21 Aug 2023 15:09:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1692644976; x=1693249776; i=michael.albinus@gmx.de; bh=LSX1Dr5GYNDXaezufBVhbmT/eLrumOPKL5Ry4DZOMp8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=YMARCkeur2oIssMY369ytWSLwWkgwagkbA59EZIZgfKzbHih4lwDGC2OpAh6VamgVe7k9zk sU5CpwzszzEPCdewhbP4lI9Z7okaKeBojre1gW9sDDdIGpZ+P7f+vJ4/88BatHr9Qxw3lBTiB 3MmQxipxhIUhK5pP9SMqIchig9sLFc3nmK2zJ5H3pKWZeMAsApy/+3n+r9hIdmZgHUr9AYbb6 Ewbv7pscrzqQlRlkAtIfzy7Hz1N89bY6CjSyeS31v8Mc6oQ3oa6qwYElX7pGDPvyhoh4xYC6k KQuVsUUjbw9AGWLFku2oPoSeLzL217guD1/b+3zYwXFNE/2N0ZtA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mqs4f-1pu6Yw3ZPl-00msMn; Mon, 21 Aug 2023 21:09:35 +0200 In-Reply-To: (Jim Porter's message of "Mon, 21 Aug 2023 10:51:27 -0700") X-Provags-ID: V03:K1:OM11smWAYhNNbkCCuE4UhDBhOSPf79j7X5t30TDqiK9oJm6hd91 l869m61FeiFZhw5wOppoHgIIICkGZy1DehgRjve+6Bn2Nwv8rwkZz07nza68V3biF9h2J+j XK7k1NoLGyKmZu/d/NyoldgSFYvhyGKBPZWSu/CkGZtlxWjFzMob8WBKRLSVj+vkenTYixD 2nTySCLbe27Bzw2dnKNjg== UI-OutboundReport: notjunk:1;M01:P0:udlw7SJmzR8=;Fdendnd4xXQZc7CaB8KTq8l0CU7 OS094NL6nFnFw4uSQuauFHg+wXhL0TUnrcRUZGXpFIgM7aZ8sFKrHnIaij6obU3UApjlerbaO D1EQFYTtDcXiNVltsyzIY0xfpSsOroJEusw18a9Fdn6VhYd2o9bF7kuLDN1dUNllq13RSEQXD 3kYW6iri5hsBS9GyVVsJI5hywxfIinnGanHObBLLP661oMvs+jY7/SBKA0DxQ3+sKTMMnwpWV TiucA7shhqqNJKebfx6AFOqlKD/zTtWCEgo3t6yOHXLzyIMqDaANWHCZMKAtvIL7qtuWIyxQy b8EGdfafs2EkuRAlp5mdYXcNn8RRWSM6YuHkH0InQGXBWDbvosY7uXVoIXy5I54CsdX42EHCz Uceqsx6YpgY/FGZoD7mgASHisVimjwRcJg0FUPStqUW45SbF7yO0XqzDvg6uD3rwX79Zp/OM+ bNLsp/R5hYJkkYhLMFKKqBdkPOH5RBFQJt/p7AyJpn8B03yE4gu21QR/bbkErZL9+LyLODJPe Fgh1mH05RLQ3UdjQ6syLfsu1UGXJ/HOmmYrRVJSuwwXFrmBRPd5PFYn+8sUQD7I/tijVL4FiR 2ju6/Wcy4pM9gEcA/YfNXjXE1V2Dw75e6kDFLxNSwcfDbAHkAKA7TmBD1eCYUVmOKjR+tAzYj HPO2CENrT3cfawNAHwkJRVT/EcBCLfEdwKFLmiSb7n4eLWdj96eTClfBG/4UYtzvv2pLXtZeO O4/Khs3ssIO6ctxSf/h7iVXgKzijTYUH09rrUYDHnN4saa6eJEVUp4Z4548XGeLk4xUt2nCR 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:268120 Archived-At: Jim Porter writes: Hi Jim, > I believe the problem is actually the *left* square bracket. Both > square brackets should be quoted; otherwise, [...] gets treated as a > glob. I'm a little surprised that the tab-completion even works here; > I guess it's more forgiving than it should be. However, if you type > "cd /\[ssh/loca TAB", it should work correctly. Indeed, I didn't think about glob chars. Quoting them works fine. > I see a couple of options: > > 1) Could Pcomplete fix the unquoted "[" for us? *Should* it? > > 2) I see that Pcomplete fails if you try to quote the whole file name, > like "cd '/[ssh:loca TAB". Maybe we should fix that. Then users could > rely on quoting with ' or " to escape the special glob characters > instead. Since glob chars are an eshell feature, I believe we could leave it as it is. It is even documented in the eshell manual. If we add the square brackets to the speacial characters of remote file names, we could close the bug I believe. Something like --8<---------------cut here---------------start------------->8--- This is needed especially for file names with special characters like pipe (=E2=80=98|=E2=80=99) or square brackets ('[' or ']'), which could be = part of remote file names. --8<---------------cut here---------------end--------------->8--- Best regards, Michael.