all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: abdo.haji.ali@gmail.com, 49711@debbugs.gnu.org
Subject: bug#49711: 27.2; Deleting a directory called ~ deletes home directory
Date: Sat, 24 Jul 2021 15:17:35 +0300	[thread overview]
Message-ID: <83h7gjzz1c.fsf@gnu.org> (raw)
In-Reply-To: <8735s43pte.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat,  24 Jul 2021 13:37:49 +0200)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sat, 24 Jul 2021 13:37:49 +0200
> Cc: 49711@debbugs.gnu.org
> 
> Al Haji-Ali <abdo.haji.ali@gmail.com> writes:
> 
> > Apologies, I should have specified that I have
> > `delete-by-moving-to-trash` set to `t`.
> > Otherwise, the exact steps you mentioned reproduce this for me on 27.2
> 
> Ah, yes, with that setting I can reproduce the problem.  This is now
> fixed in Emacs 28.

Hmm... you replaced expand-file-name with directory-append, but what
if there's a real "~" in the arguments, or some ".." etc. stuff?  That
would now wind up in the trash info, no?

Wouldn't it be better to quote "~" when it's a literal file name?





  reply	other threads:[~2021-07-24 12:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-23 15:03 bug#49711: 27.2; Deleting a directory called ~ deletes home directory Al Haji-Ali
2021-07-23 16:07 ` Lars Ingebrigtsen
2021-07-23 17:08   ` Al Haji-Ali
2021-07-24 11:37     ` Lars Ingebrigtsen
2021-07-24 12:17       ` Eli Zaretskii [this message]
2021-07-24 12:27         ` Lars Ingebrigtsen
2021-07-24 12:40           ` Eli Zaretskii
2021-07-24 14:18             ` Lars Ingebrigtsen
     [not found]       ` <b5a28a7b-8705-41b1-8b48-4b042569b387@Spark>
2021-07-24 15:24         ` 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=83h7gjzz1c.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=49711@debbugs.gnu.org \
    --cc=abdo.haji.ali@gmail.com \
    --cc=larsi@gnus.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.