GNU bug report logs - #49711
27.2; Deleting a directory called ~ deletes home directory

Previous Next

Package: emacs;

Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>

Date: Fri, 23 Jul 2021 15:08:02 UTC

Severity: normal

Tags: moreinfo

Found in version 27.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #21 received at 49711 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: abdo.haji.ali <at> gmail.com, 49711 <at> debbugs.gnu.org
Subject: Re: bug#49711: 27.2;
 Deleting a directory called ~ deletes home directory
Date: Sat, 24 Jul 2021 15:17:35 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Sat, 24 Jul 2021 13:37:49 +0200
> Cc: 49711 <at> debbugs.gnu.org
> 
> Al Haji-Ali <abdo.haji.ali <at> 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?




This bug report was last modified 3 years and 301 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.