On Wed, Feb 03, 2016 at 05:41:14PM -0800, Pádraig Brady wrote:
> On 03/02/16 06:05, Adam Borowski wrote:
> > Also, the proposed workaround, "alias ls='ls -N'" doesn't act reasonably.
> > It disables _all_ quoting, including nasty unprintable characters. When the
> > output goes to the terminal, it is meant to be read by a human. Humans can
> > read spaces and apostrophes just fine, they can't read \1 or broken UTF-8.
>
> `ls -N` does revert to the previous behaviour.
> I.E. weird chars are replaced with ?
In that case, the documentation is wrong. From the man page:
-N, --literal
print raw entry names (don't treat e.g. control characters
specially)
That's not what this does. Printing a control character as '?' *is*
treating it specially. Currently, -N behaves as I would expect -q to
behave. Apparently there's no way to ask ls to not process filenames *at
all*. That's just wrong.
--
It is easy to love a country that is famous for chocolate and beer
-- Barack Obama, speaking in Brussels, Belgium, 2014-03-26