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

From: Pádraig Brady <[email-masked]>
Date: Mon, 9 Jan 2017 20:10:30 +0000

tag 25388 notabug
close 25388
stop

On 09/01/17 18:48, L A Walsh wrote:
> ls alias on my machines:
> alias ls='ls -CF --show-control-chars --color=always'

Note a caveat of the above is that it changes the display width
depending on whether you pipe to more or not.
You could avoid that by changing the alias to:

  alias ls='COLUMNS=$COLUMNS ls -CF --show-control-chars --color'

Also you can stick a -N option in that alias to disable the default quoting.

cheers,
Pádraig.