unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 58664@debbugs.gnu.org
Subject: bug#58664: 29.0.50; Dired fails to operate on files with newline charachters in name
Date: Thu, 20 Oct 2022 19:51:51 +0200	[thread overview]
Message-ID: <87edv29ydk.fsf@rub.de> (raw)
In-Reply-To: <87y1tajsxr.fsf@posteo.net> (Philip Kaludercic's message of "Thu,  20 Oct 2022 17:39:12 +0000")

On Thu, 20 Oct 2022 17:39:12 +0000 Philip Kaludercic <philipk@posteo.net> wrote:

> If I create a file in the shell using
>
>    $ touch "one
>    two"
>    $ ls
>    'one'$'\n''two'
>
> and try to open this directory using Dired, I get the following
>
>     -rw-r--r--. 1 philip philip    0 Oct 20 19:37 one
>   two
>
> where the "t" in two is highlighted.  If I try to mark the file and
> delete it, Dired attempts to delete the file "one", that luckily doesn't
> exist.

See (emacs) Dired Enter:

     Dired does not handle files that have names with embedded newline
  characters well.  If you have many such files, you may consider adding
  ‘-b’ to ‘dired-listing-switches’.  This will quote all special
  characters and allow Dired to handle them better.  (You can also use the
  ‘C-u C-x d’ command to add ‘-b’ temporarily.)

Steve Berman





  reply	other threads:[~2022-10-20 17:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20 17:39 bug#58664: 29.0.50; Dired fails to operate on files with newline charachters in name Philip Kaludercic
2022-10-20 17:51 ` Stephen Berman [this message]
2022-10-20 17:54 ` Eli Zaretskii
2022-11-24 20:01   ` Stefan Kangas

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87edv29ydk.fsf@rub.de \
    --to=stephen.berman@gmx.net \
    --cc=58664@debbugs.gnu.org \
    --cc=philipk@posteo.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).