On 03/05/16 20:07, Daniel Quinn wrote:
Some time ago after an update |ls| started returning output that looked
like this:
|8hOk25T.jpg 'Janeway Wallpaper-iPhone.png' 'Screenshot from 2016-04-06
16-15-15.png' microsoft.png 'Away mission Wallpaper-iPhone.png'
'Screenshot from 2016-03-18 14-29-06.png' 'Screenshot from 2016-04-07
11-29-02.png' gcal.png |
Note that some of the files have a single quote (‘) surrounding them,
and others don’t. [...]
I see that I can just write an alias:
|alias ls="ls --quoting-style=literal" |
But I’d hate to do that if the default is “literal” and there’s some
config installed somewhere that’s changing this. [...]
As mentioned already, it's an upstream default. However, on Gentoo, "ls"
is already an alias for "ls --color=auto", because the upstream default
is to now use colors. At least for bash anyway (the alias is set in
/etc/bash/bashrc).
So I'd say just do:
alias ls="ls --quoting-style=literal --color=auto"
in your ~/.bashrc and forget about it :-) Or, if you want it
system-wide, just write that alias in a new file:
/etc/bash/bashrc.d/aliases