bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Pádraig Brady
Subject: bug#25388: Bug in ls, kills existing scripts reading "ls" -1 as input
Date: Mon, 9 Jan 2017 20:10:30 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]