(eshell-extended-glob): Expand the "." path before passing it down to

`eshell-glob-entries'.  This is done because special file-handlers
will on trigger on ".", even if `default-directory' is special.
This commit is contained in:
John Wiegley 2005-11-01 07:03:03 +00:00
parent 769b5f0a28
commit 669dc0a115

View file

@ -254,7 +254,8 @@ the form:
(file-name-absolute-p (car paths)))
(eshell-glob-entries (file-name-as-directory (car paths))
(cdr paths))
(eshell-glob-entries (file-name-as-directory ".") paths))
(eshell-glob-entries (expand-file-name
(file-name-as-directory ".")) paths))
(if message-shown
(message nil)))
(or (and matches (nreverse matches))