Subject: Re: bug#25388: Bug in ls, kills existing scripts reading "ls" -1 as input

From: Eric Blake <[email-masked]>
Date: Mon, 9 Jan 2017 13:44:41 -0600

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.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org