From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62096: 30.0.50; find-dired, dired-goto-file and spaces Date: Sat, 11 Mar 2023 14:00:50 +0200 Message-ID: <83ttyrwl8t.fsf@gnu.org> References: <87edpw1wt3.fsf@ledu-giraud.fr> <877cvofvgg.fsf@gmx.net> <87a60k1nus.fsf@ledu-giraud.fr> <875yb81mh3.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14855"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62096@debbugs.gnu.org, stephen.berman@gmx.net, manuel@ledu-giraud.fr, drew.adams@oracle.com To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 11 13:02:49 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 1paxw0-0003gT-T5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Mar 2023 13:02:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paxvq-0000Eb-VO; Sat, 11 Mar 2023 07:02:38 -0500 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 1paxvN-00007o-AN for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2023 07:02:11 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paxvG-0005qI-Jo for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2023 07:02:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1paxvG-00061W-AJ for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2023 07:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Mar 2023 12:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62096 X-GNU-PR-Package: emacs Original-Received: via spool by 62096-submit@debbugs.gnu.org id=B62096.167853607323066 (code B ref 62096); Sat, 11 Mar 2023 12:02:02 +0000 Original-Received: (at 62096) by debbugs.gnu.org; 11 Mar 2023 12:01:13 +0000 Original-Received: from localhost ([127.0.0.1]:56694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paxuS-0005zy-VU for submit@debbugs.gnu.org; Sat, 11 Mar 2023 07:01:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paxuR-0005zf-Br for 62096@debbugs.gnu.org; Sat, 11 Mar 2023 07:01:11 -0500 Original-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 ) id 1paxuL-0005gE-KC; Sat, 11 Mar 2023 07:01:05 -0500 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=p4aMkAndk5BZUow84boP/XoatMo4UmeZ/tmJeXiWizo=; b=agVz6djF5MwI+YfQJrFy OgnoOFwYQ+/zYb8tbtYeqhS8uIO+J/w3F46kghsp/HWsQJf6EaT5qArPoEAVZO00dars8jCrnIDHY k5cPsfYPFcTsc75ZbqyIe1k+51ofqZds+ZBn+eVO/mqKoPXCL3F2/IAr47E+81dd6aNGt8JK1FGhw kr6hQfwirWUIgkywYCvbmwDOy+OCxZcvfHlASU9X3tn6Bawn3IvHavf/JV7KmB4LZDlHWf6aCBbjS 1g0cTm0hzPB1O7Fsh1toxc85Bj22rAQjIVbWI93M/T9qw2Vn+BMtY+Ys6KwCleGKQdfF3Z3DWErN8 5kfp3M1lF077uw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paxuL-0005w5-0s; Sat, 11 Mar 2023 07:01:05 -0500 In-Reply-To: (bug-gnu-emacs@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:257782 Archived-At: > Cc: stephen.berman@gmx.net, drew.adams@oracle.com, manuel@ledu-giraud.fr > Date: Fri, 10 Mar 2023 21:48:04 +0100 > From: Daniel Martín via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" writes: > > > Ok, so commenting the string-replace at dired.el:3529 in > > 'dired-goto-file-1' (ie. not replacing " " with "\\ ") does the trick > > for me... > > > > That being said those are here for a reason. It might be a difference > > between OpenBSD's find and the GNU one (I don't know for Windows). > > This bug also affects macOS. After reading the code I'd say that, even > on GNU/Linux, there are probably other corner cases where > dired-goto-file would fail: > > ;; FIXME: to fix this for embedded control characters etc, we > ;; should escape everything that `ls -b' does. > (setq str (string-replace " " "\\ " str) > str (string-replace "\t" "\\t" str) > str (string-replace "\n" "\\n" str)) > > For example, on GNU/Linux, ls -b outputs: > > vacation\ 2022 > > while on macOS it outputs: > > vacation 2022 Shouldn't we be talking ab out what "find ... -ls" produces instead?