Subject: Re: bug#49711: 27.2; Deleting a directory called ~ deletes home directory

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 24 Jul 2021 14:27:21 +0200

Eli Zaretskii <[email-masked]> writes:

> 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?

Sorry, I don't follow you here -- if we're trashing a file called
"/tmp/~", then the "~" file ends up in the trash now, as expected.

Do you mean "~/foo"?  That works the same as before.

(Moving "/tmp/.." to trash fails the same way as before.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no