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

From: Eli Zaretskii <[email-masked]>
Date: Tue, 09 Jul 2019 18:39:15 +0300

> From: Erik Hahn <[email-masked]>
> Date: Mon, 8 Jul 2019 23:30:38 +0200
> Cc: [email-masked]
> 
>  > If ‘/~’ appears, all of FILENAME through that ‘/’ is discarded.
> 
> but
> 
> (substitute-in-file-name "/tmp/~foo") => "/tmp/~foo"

Do you have a user named "foo" on that system?  If not, try a real
user name instead of "foo".