]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-extended-glob): Expand the "." path before passing it down to
authorJohn Wiegley <johnw@newartisans.com>
Tue, 1 Nov 2005 07:03:03 +0000 (07:03 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 1 Nov 2005 07:03:03 +0000 (07:03 +0000)
`eshell-glob-entries'.  This is done because special file-handlers
will on trigger on ".", even if `default-directory' is special.

lisp/eshell/em-glob.el

index 869144dad7446098f890bf36c9d39b231814c334..ec7ed22876a1eb9dad83813e656d25dc7bbab252 100644 (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))