all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: "Daniel Martín" <mardani29@yahoo.es>
Cc: 62096@debbugs.gnu.org, stephen.berman@gmx.net,
	manuel@ledu-giraud.fr, drew.adams@oracle.com
Subject: bug#62096: 30.0.50; find-dired, dired-goto-file and spaces
Date: Sun, 12 Mar 2023 18:55:41 +0800	[thread overview]
Message-ID: <87fsaab5n6.fsf@yahoo.com> (raw)
In-Reply-To: <m15yb82v0b.fsf@yahoo.es> ("Daniel Martín"'s message of "Fri, 10 Mar 2023 21:48:04 +0100")

Daniel Martín <mardani29@yahoo.es> writes:

> Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs@gnu.org> 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

`ls --dired -l'  outputs a huge swath of numbers and options for Dired
detailing, among other information, the quoting style being used.





  parent reply	other threads:[~2023-03-12 10:55 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-10 14:54 bug#62096: 30.0.50; find-dired, dired-goto-file and spaces Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 15:43 ` Drew Adams
2023-03-10 15:59   ` Stephen Berman
2023-03-10 17:10     ` Drew Adams
2023-03-10 18:07     ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 18:37       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 20:48         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 21:04           ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-11  0:14             ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-11 14:02               ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-11 14:17                 ` Eli Zaretskii
2023-03-11 14:27                   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-17  7:49                     ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-17  8:33                       ` Eli Zaretskii
2023-03-17  9:12                         ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-17 11:33                           ` Eli Zaretskii
2023-03-17 15:25                             ` Drew Adams
2023-03-17 15:41                               ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-17 16:14                                 ` Drew Adams
2023-03-17 16:26                               ` Eli Zaretskii
2023-03-17 17:20                                 ` Drew Adams
2023-03-17 17:50                                   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-17 18:56                                     ` Eli Zaretskii
2023-03-17 18:42                                   ` Eli Zaretskii
2023-03-17 17:54                             ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-17 18:57                               ` Eli Zaretskii
2023-03-17 19:10                                 ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-18  6:34                                   ` Eli Zaretskii
2023-03-18 10:16                                     ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-12 10:54                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-12 11:32                     ` Eli Zaretskii
2023-03-12 11:56                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-12 17:51                     ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-11 17:09                 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-11 18:46                   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-11 19:30                     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 21:31           ` Drew Adams
2023-03-10 21:43             ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-11 12:00           ` Eli Zaretskii
2023-03-12 10:55           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-03-11 11:55         ` Eli Zaretskii
2023-03-11 14:12           ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 19:05       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 19:55         ` Drew Adams
2023-03-10 20:42           ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 21:24             ` Drew Adams
2023-03-10 21:32               ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 21:45                 ` Drew Adams
2023-03-10 22:03                   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 22:20                     ` Drew Adams
2023-03-11 11:58         ` Eli Zaretskii
2023-03-10 19:48       ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsaab5n6.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=62096@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=luangruo@yahoo.com \
    --cc=manuel@ledu-giraud.fr \
    --cc=mardani29@yahoo.es \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.