[Toybox] ls (/-b/-q) (/on a tty)

Josh Gao jmgao at google.com
Fri Dec 8 18:27:49 PST 2017


On Fri, Dec 8, 2017 at 6:12 PM, Rob Landley <rob at landley.net> wrote:
>
> I dunno about "wrong", but I agree it's not what ubuntu's does.
> Posix-2008 is ambivalent:
>
>   -q  Force each instance of non-printable filename characters and
>       <tab> characters to be written as the <question-mark> ( '?' )
>       character. Implementations may provide this option by default
>       if the output is to a terminal device.
>

POSIX 2008 defines 'printable character' as explicitly including space:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_287
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap07.html#tag_07_03_01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20171208/a9841149/attachment-0001.htm>


More information about the Toybox mailing list