|
From: | Lars Ingebrigtsen |
Subject: | bug#36490: 26.1; directory-files-recursively breaks when it encounters a directory named "~" |
Date: | Mon, 08 Jul 2019 22:59:37 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Erik Hahn <erik_hahn@gmx.de> 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
[Prev in Thread] | Current Thread | [Next in Thread] |