Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b7e9b5b0
Commit
b7e9b5b0
authored
Aug 15, 2008
by
Glenn Morris
Browse files
(eshell-ls-files): List one per line in a pipeline, unless at the end
of the pipeline. (Bug#699).
parent
3fe3fd2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
lisp/ChangeLog
lisp/ChangeLog
+7
-0
lisp/eshell/em-ls.el
lisp/eshell/em-ls.el
+8
-1
No files found.
lisp/ChangeLog
View file @
b7e9b5b0
2008-08-15 Glenn Morris <rgm@gnu.org>
* eshell/esh-cmd.el (eshell-do-pipelines): Indicate the last command in
a pipeline.
* eshell/em-ls.el (eshell-ls-files): List one per line in a pipeline,
unless at the end of the pipeline. (Bug#699).
2008-08-14 Chong Yidong <cyd@stupidchicken.com>
* minibuffer.el (completion-boundaries): Doc fix.
...
...
lisp/eshell/em-ls.el
View file @
b7e9b5b0
...
...
@@ -635,7 +635,14 @@ In Eshell's implementation of ls, ENTRIES is always reversed."
"Output a list of FILES.
Each member of FILES is either a string or a cons cell of the form
\(FILE . ATTRS)."
(
if
(
memq
listing-style
'
(
long-listing
single-column
))
;; Mimic behavior of coreutils ls, which lists a single file per
;; line when output is not a tty. Exceptions: if -x was supplied,
;; or if we are the _last_ command in a pipeline.
;; FIXME Not really the same since not testing output destination.
(
if
(
or
(
and
eshell-in-pipeline-p
(
not
(
eq
eshell-in-pipeline-p
'last
))
(
not
(
eq
listing-style
'by-lines
)))
(
memq
listing-style
'
(
long-listing
single-column
)))
(
eshell-for
file
files
(
if
file
(
eshell-ls-file
file
size-width
copy-fileinfo
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment