On 02/02/16 10:54, Raffaele BELARDI wrote:
After a recent update of coreutils to version 8.25, 'ls -l' started
displaying names containing spaces enclosed in single quotes, e.g.:
drwxr-xr-x 6 belardi users 4096 May 21 2012 'Audio Libraries'
drwxr-xr-x 2 belardi users 4096 Jun 10 2014 Brochure
The option that controls this is --quoting-style, so
--quoting-style=literal returns to the old behaviour (which I prefer). I
can alias 'ls' to include this option but was wondering if there is a
global configuration file controlling such behaviour.
This is done with aliases. Actually, the "ls" command should by default
be an alias. If you just enter:
$ alias
you are shown current aliases. "ls" should actually be defined as:
alias ls='ls --color=auto'
If you actually enter "/bin/ls", you'll see that by default ls doesn't
even show colors. So Gentoo's default install provides an alias for that.
You can provide your own alias in /etc/bash/bashrc, which is sourced by
all interactive shells.
All you need to do is provide your own alias. You can do that in your
~/.bashrc file by adding this:
alias ls="ls --color=auto --quoting-style=literal"
Logout and in again and you're done.