Eric Blake wrote:
On 01/09/2017 12:48 PM, L A Walsh wrote:
Sure it is. 'ls' has done that since then 1980s. 'ls' shows
multicolumn output when the output is a tty, and single-column output
when piped into a pager.
----
That's not what I'm used to:
ls alias on my machines:
alias ls='ls -CF --show-control-chars --color=always'
That's because you are using an alias to alter 'ls' to non-default
behavior for your personal default.
Try again with '\ls' everywhere you previously used 'ls', and you will
see that output to the terminal is different than output to a file or
pipeline.
---
Gee guess you missed my 1st response to Andreas:
I changed it on my machine to put out color
even if through a pipe as I usually am piping it through
'less' and I want to see the color. If I want no color --
I can get the normal text by adding a backslash before
the command.
---
So 'backslash' usage -- got that -- disables alias usage.
Thanks.
:-)