ls: default to --quoting=shell-escape for output to terminal
commit109b9220cead6e979d22d16327c4d9f8350431cc
authorPádraig Brady <P@draigBrady.com>
Tue, 3 Nov 2015 16:32:08 +0000 (3 16:32 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 4 Nov 2015 23:30:15 +0000 (4 23:30 +0000)
tree048d336b23d02068fe926224da83c06415b0a3fd
parent5ef08864113505c6392158c9fac9a6cb1b3ac0e6
ls: default to --quoting=shell-escape for output to terminal

* 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.
NEWS
doc/coreutils.texi
src/ls.c