On Tue, Feb 02, 2016 at 09:54:37AM +0100, Raffaele BELARDI wrote: > 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.
There is no configuration file for ls(1), but we can still solve the problem. It is free software, after all! Put the file fix.patch in /etc/portage/patches/sys-apps/coreutils-8.25/ and apply the following changes to the ebuild (in the function src_prepare): --- old/sys-apps/coreutils/coreutils-8.25.ebuild 2016-01-30 15:56:16.000000000 +0000 +++ new/sys-apps/coreutils/coreutils-8.25.ebuild 2016-02-02 10:18:38.985961581 +0000 @@ -72,6 +72,8 @@ touch src/dircolors.h touch ${@/%x/1} fi + + epatch_user } Don't forget to regenerate the manifest ebuild .../sys-apps/coreutils/coreutils-8.25.ebuild manifest and recompile! ;-)
diff a/src/ls.c b/src/ls.c --- a/src/ls.c +++ b/src/ls.c @@ -1581,7 +1581,6 @@ decode_switches (int argc, char **argv) if (isatty (STDOUT_FILENO)) { format = many_per_line; - set_quoting_style (NULL, shell_escape_quoting_style); /* See description of qmark_funny_chars, above. */ qmark_funny_chars = true; }