aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-08-15 06:55:43 +0000
committerGlenn Morris2008-08-15 06:55:43 +0000
commitb7e9b5b0c8c114f3416d21f8e7632fcd78afe551 (patch)
tree5c047c2e4b481aa55f7470d0e54e56a775bf0cb5
parent3fe3fd2c6db8c97243f52aba2c10b547fdeb60a8 (diff)
downloademacs-b7e9b5b0c8c114f3416d21f8e7632fcd78afe551.tar.gz
emacs-b7e9b5b0c8c114f3416d21f8e7632fcd78afe551.zip
(eshell-ls-files): List one per line in a pipeline, unless at the end
of the pipeline. (Bug#699).
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/eshell/em-ls.el9
2 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index db9af12b7e6..611b616d42a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12008-08-15 Glenn Morris <rgm@gnu.org>
2
3 * eshell/esh-cmd.el (eshell-do-pipelines): Indicate the last command in
4 a pipeline.
5 * eshell/em-ls.el (eshell-ls-files): List one per line in a pipeline,
6 unless at the end of the pipeline. (Bug#699).
7
12008-08-14 Chong Yidong <cyd@stupidchicken.com> 82008-08-14 Chong Yidong <cyd@stupidchicken.com>
2 9
3 * minibuffer.el (completion-boundaries): Doc fix. 10 * minibuffer.el (completion-boundaries): Doc fix.
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el
index db256bd8c9d..eb3389ce7cf 100644
--- a/lisp/eshell/em-ls.el
+++ b/lisp/eshell/em-ls.el
@@ -635,7 +635,14 @@ In Eshell's implementation of ls, ENTRIES is always reversed."
635 "Output a list of FILES. 635 "Output a list of FILES.
636Each member of FILES is either a string or a cons cell of the form 636Each member of FILES is either a string or a cons cell of the form
637\(FILE . ATTRS)." 637\(FILE . ATTRS)."
638 (if (memq listing-style '(long-listing single-column)) 638 ;; Mimic behavior of coreutils ls, which lists a single file per
639 ;; line when output is not a tty. Exceptions: if -x was supplied,
640 ;; or if we are the _last_ command in a pipeline.
641 ;; FIXME Not really the same since not testing output destination.
642 (if (or (and eshell-in-pipeline-p
643 (not (eq eshell-in-pipeline-p 'last))
644 (not (eq listing-style 'by-lines)))
645 (memq listing-style '(long-listing single-column)))
639 (eshell-for file files 646 (eshell-for file files
640 (if file 647 (if file
641 (eshell-ls-file file size-width copy-fileinfo))) 648 (eshell-ls-file file size-width copy-fileinfo)))