aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell/em-glob.el
diff options
context:
space:
mode:
authorJohn Wiegley <[email protected]>2005-11-01 07:03:03 +0000
committerJohn Wiegley <[email protected]>2005-11-01 07:03:03 +0000
commit669dc0a115c603f247e6724ff83e435919f7e3c6 (patch)
tree557ee871f80d16eace7b5be5f9c81ae9066722c7 /lisp/eshell/em-glob.el
parent769b5f0a282ad1d185f54c1a682d342487f880d2 (diff)
(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.
Diffstat (limited to 'lisp/eshell/em-glob.el')
-rw-r--r--lisp/eshell/em-glob.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/eshell/em-glob.el b/lisp/eshell/em-glob.el
index 869144dad7..ec7ed22876 100644
--- a/lisp/eshell/em-glob.el
+++ b/lisp/eshell/em-glob.el
@@ -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))