bug#22696: ls output changes considered unacceptable
From:
Eric Blake
Subject:
bug#22696: ls output changes considered unacceptable
Date:
Tue, 16 Feb 2016 15:37:01 -0700
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
On 02/16/2016 03:13 PM, Ruediger Meier wrote:
>
> Do you really think that this ls output is clear to a newbie?
> $ ls
> 'a?b' 'a'$'\n''b' axb c 'd e'
A newbie isn't going to create a file with a newline in it; and the
others seem reasonable to me.
Maybe we could make an effort to quote as "a'b" instead of 'a'\''b', if
there are no ", $, or ` within a name, while still using '' quoting for
everything else.
But I _like_ quoting by default. It's certainly nicer than representing
$'a\nb' as a?b, and having to guess what the glob expands to.
> It doesn't matter if you like the new format or not. This quick change
> of the default to an even untested new (never released before!) format
> was clearly over the top. Please revert.
No, I don't think we should revert. But I have no problem calling
attention to the fact that you can update your environment to select the
previous behavior as _your_ default, regardless of what we select for
the out-of-the-box default for someone that hasn't updated their initial
environment to request an alternate quoting mode.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc Description: OpenPGP digital signature