aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-08-15 06:52:34 +0000
committerGlenn Morris2008-08-15 06:52:34 +0000
commit4aa8cbfb163090bc678a30ae6458eafacd7e59e6 (patch)
tree57a75789ce03eb568f7c7ef1a5f7a3c23d8c84f5
parent6ad38dc0acb6370bf5a65688fc891e67ae789e5b (diff)
downloademacs-4aa8cbfb163090bc678a30ae6458eafacd7e59e6.tar.gz
emacs-4aa8cbfb163090bc678a30ae6458eafacd7e59e6.zip
(eshell-ls-files): List one per line in a pipeline. (Bug#699)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/eshell/em-ls.el7
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fa439380097..96ec3e8c1d8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-08-15 Glenn Morris <rgm@gnu.org>
2
3 * eshell/em-ls.el (eshell-ls-files): List one per line in a pipeline.
4 (Bug#699)
5
12008-08-13 Martin Rudalics <rudalics@gmx.at> 62008-08-13 Martin Rudalics <rudalics@gmx.at>
2 7
3 * emacs-lisp/find-func.el (find-library): Wrap search for 8 * emacs-lisp/find-func.el (find-library): Wrap search for
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el
index a31fb26b5f1..bdfe66420fb 100644
--- a/lisp/eshell/em-ls.el
+++ b/lisp/eshell/em-ls.el
@@ -638,7 +638,12 @@ In Eshell's implementation of ls, ENTRIES is always reversed."
638 "Output a list of FILES. 638 "Output a list of FILES.
639Each member of FILES is either a string or a cons cell of the form 639Each member of FILES is either a string or a cons cell of the form
640\(FILE . ATTRS)." 640\(FILE . ATTRS)."
641 (if (memq listing-style '(long-listing single-column)) 641 ;; Mimic behavior of coreutils ls, which lists a single file per
642 ;; line when output is not a tty. Exceptions: if -x was supplied.
643 ;; Not really the same since not testing output destination.
644 (if (or (and eshell-in-pipeline-p
645 (not (eq listing-style 'by-lines)))
646 (memq listing-style '(long-listing single-column)))
642 (eshell-for file files 647 (eshell-for file files
643 (if file 648 (if file
644 (eshell-ls-file file size-width copy-fileinfo))) 649 (eshell-ls-file file size-width copy-fileinfo)))