On Fri, 4 Aug 2017, Fabrice Popineau wrote:
Thank you Fabrice,
2017-08-04 16:23 GMT+02:00 Fabrice Popineau <fabrice.popineau@gmail.com>:
Actually, the problem seems to be in the `insert-directory-wildcard-in-dir-p' function
which wrongly splits "c:/tmp/dir*/*.txt" in ("c:/tmp/" . "dir*/*.txt") instead of
("c:/tmp/dir*/" . "*.txt")
Forget this (wrong) diagnostic.
The culprit is actually
(let ((default-directory "c:/tmp/"))
(eshell-extended-glob "dir*/*.txt"))
"dir*/*.txt"
which fails to expand the wildcards (when `file-expand-wildcards' succeeds).
that's interesing. I am just wondering if `eshell-extended-glob' gets confused with the Windows path, i mean, the disk name 'c:' in front.
Could you check if the following works?
M-x eshell RET
cd "c:/tmp"
ls -l dir*/*.txt
I am also curious if:
M-: (equal temporary-file-directory "c:/tmp/") RET
=> t