Subject: Re: bug#36490: 26.1; directory-files-recursively breaks when it encounters a directory named "~"

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 08 Jul 2019 22:59:37 +0200

Erik Hahn <[email-masked]> writes:

> Call (directory-files-recursively DIR ".*") where DIR contains a
> subdirectory named "~" but is not the parent of your home directory. The
> function will recurse into your home directory. This is probably because
> (expand-file-name "~" ...) returns the home directory.

Oops:

(expand-file-name "~" "/tmp/")
=> "/home/larsi"

Yup; that function should be rewritten to have no instances of
`expand-file-name', which is too DWIM for a function like this.  I'll do
a rewrite...

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