all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: 44645@debbugs.gnu.org
Subject: bug#44645: dired-do-rename: check before asking doomed command
Date: Sun, 15 Nov 2020 04:17:42 +0800	[thread overview]
Message-ID: <874klrk80p.8.fsf@jidanni.org> (raw)

Create a directory, then move it to /tmp.
Then do that all a second time.

R runs the command dired-do-rename.
It should do some check before asking about command doomed to fail:

Overwrite ‘/tmp/google-chrome-unstable’? [Type yn!q or C-h] y
Move: ‘/home/jidanni/.config/google-chrome-unstable’ to ‘/tmp/google-chrome-unstable’ failed:
(file-already-exists File exists /tmp/google-chrome-unstable)

Also that last line,
(file-already-exists File exists /tmp/google-chrome-unstable)
 ^^^^         ^^^^^^ ^^^^ ^^^^^^
seems to repeat itself. (Looks bad.)
(Also aren't these directories, not just files?)

OK, trying again with the shell
$ mv -i .config/google-chrome-unstable/ /tmp/
mv: overwrite '/tmp/google-chrome-unstable'? y
mv: inter-device move failed: '.config/google-chrome-unstable/' to
'/tmp/google-chrome-unstable'; unable to remove target: Directory not empty

OK, I guess checking too much ahead every time isn't worth the overhead.
If so, close this bug.

emacs-version "27.1"





             reply	other threads:[~2020-11-14 20:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-14 20:17 積丹尼 Dan Jacobson [this message]
2020-11-16 23:00 ` bug#44645: dired-do-rename: check before asking doomed command Lars Ingebrigtsen

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=874klrk80p.8.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=44645@debbugs.gnu.org \
    /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.