[Toybox] [PATCH] ls -N.

enh enh at google.com
Thu Dec 1 11:35:49 PST 2022


Not everyone wants -b, but that's the default for a tty, and we don't
currently have an opt out.

To my surprise, -N (despite having the long name --literal) only
disables -b, not -q. There's a separate --show-control-chars (opposite
of --hide-control-chars, which is the long name for -q) for that, so -N
really is just "the opposite of -b".

Since no-one's asked for --show-control-chars yet to my knowledge, I've
not implemented that here.

Also add tests for -b/-q/-N.
---
 tests/ls.test   | 7 +++++++
 toys/posix/ls.c | 7 +++++--
 2 files changed, 12 insertions(+), 2 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20221201/c4c3edf0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ls-N.patch
Type: text/x-patch
Size: 2837 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20221201/c4c3edf0/attachment.bin>


More information about the Toybox mailing list