* src/ls.c (decode_switches): Set "shell-escape" if isatty().
* doc/coreutils.texi (ls invocation): Update the defaults description.
* NEWS: Mention the change in behavior. It should not have
backwards compat issues, but mentioning here just in case.
df now prefers sources towards the root of a device when
eliding duplicate bind mounted entries.
+ ls now quotes file names unambiguously and appropriate for use in a shell,
+ when outputting to a terminal.
+
** Improvements
All utilities now quote user supplied arguments in error strings,
You can specify the default value of the @option{--quoting-style} option
with the environment variable @env{QUOTING_STYLE}@. If that environment
-variable is not set, the default value is @samp{literal}, but this
-default may change to @samp{shell} in a future version of this package.
+variable is not set, the default value is @samp{shell-escape} when the
+output is a terminal, and @samp{literal} otherwise.
@item --show-control-chars
@opindex --show-control-chars
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;
}