bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24926: ls output has been made ugly


From: L. A. Walsh
Subject: bug#24926: ls output has been made ugly
Date: Fri, 11 Nov 2016 13:47:07 -0800
User-agent: Thunderbird



Eric Blake wrote:
On 11/11/2016 03:25 PM, L. A. Walsh wrote:
Eric Blake wrote:
If the idea is that the quoting is there to make copy-and-pasting into a
shell command line easier, then there is nothing we can do that is less
aggressive, since failing to quote spaces changes what the shell will
do.
----
   I assume you are talking about "quoting-style=shell-always"
and not the conditional quoting you get for "quoting-style=shell"?

quoting-style=shell-always uses quotes ALWAYS, even if the quotes are
redundant.  quoting-style=shell uses quotes ONLY if the shell could
otherwise interpret it differently without the quotes.
---
        I understand that.  It sounded like you were talking
about changing the default output to use quotes, which would be
a disaster.

I know of multiple scripts that use "\ls -1" to get a single column of filenames for input (assuming
it is known that there are no embedded newlines in your
filenames). For most people that is true. If you need more quoting, then output strings with a \00 at the end. It's the
only guarantee of not being used in a filename.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]