+2009-03-27 Eli Zaretskii <eliz@gnu.org>
+
+ * ls-lisp.el (ls-lisp-insert-directory): Allow for a trailing '/'
+ when looking for "." and "..". (Bug#2801)
+
2009-03-27 Andreas Schwab <schwab@linux-m68k.org>
* simple.el (shift-select-mode): Make it a defcustom.
(setq elt (car file-alist)
file-alist (cdr file-alist))
(when (and (eq (cadr elt) t) ; directory
- (not (string-match "\\`\\.\\.?\\'" (car elt))))
+ ;; Under -F, we have already decorated all
+ ;; directories, including "." and "..", with
+ ;; a /, so allow for that as well.
+ (not (string-match "\\`\\.\\.?/?\\'" (car elt))))
(setq elt (expand-file-name (car elt) dir))
(insert "\n" elt ":\n")
(ls-lisp-insert-directory