<div dir="ltr">(yeah, when i looked at this [can't remember why now] i remember just shaking my head at the stupidity --- sometimes it's like these people have never used command line arguments before. i was also disappointed they'd changed the default behavior in ls itself; unlike the stupid color nonsense which was just a debian alias that i could easily get rid of.)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 4, 2023 at 1:26 AM Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So in ls I have [-Nbq] where -q would print ? instead of nongraphic characters,<br>
-b would do c-style escapes for nongraphic characters, and -N would pass them<br>
through literally. Simple, right?<br>
<br>
But that's not what the gnu/dammit version does. -b and -q replace each other,<br>
and -N turns off -b. But -N does NOT turn off -q, only -b. Instead they added a<br>
the magic longopt --show-control-chars that does what you'd THINK -N does.<br>
<br>
This means touch $'hello \rworld'; ls -qN prints hello ?world with gnu/dammit<br>
ls, which is sad.<br>
<br>
Oh, and for extra fun, "man ls" doesn't mention it in my distro but ls has<br>
changed its default output style AGAIN to do --quoting-style=shell-escape by<br>
default when output is to a terminal, which A) does not seem to have a short<br>
option at all, B) is implemented in a PROFOUNDLY stupid manner.<br>
<br>
1) The above comes out as 'hello '$'\r''world' which changes quote contexts<br>
THREE TIMES for no obvious reason, and even the somewhat awkward touch<br>
abc\'$'\r'def becomes the amazingly awkward 'abc'\'''$'\r''def<br>
<br>
2) Ever filename that is NOT escaped winds up indented by one space, which is<br>
how I first noticed the Fresh Gnu Stupid.<br>
<br>
Anyway: I'm leaning towards leaving toybox -N doing what it's doing because<br>
random gnu thrashing du jour is just deeply sad, but I wanted to ping the list<br>
to see if anybody had strong opinions?<br>
<br>
Rob<br>
_______________________________________________<br>
Toybox mailing list<br>
<a href="mailto:Toybox@lists.landley.net" target="_blank">Toybox@lists.landley.net</a><br>
<a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" rel="noreferrer" target="_blank">http://lists.landley.net/listinfo.cgi/toybox-landley.net</a><br>
</blockquote></div>