[TUHS] Command line options and complexity

Warner Losh imp at bsdimp.com
Fri Mar 6 07:56:58 AEST 2020


On Thu, Mar 5, 2020 at 2:51 PM Dave Horsfall <dave at horsfall.org> wrote:

> On Wed, 4 Mar 2020, Ken Thompson via TUHS wrote:
>
> > do i get a prize:
> > ls -tj
> > /bin/ls: illegal option -- j
> > usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]
>
> Another candidate for option-cleansing...  Interesting; I get different
> options with the Mac and FreeBSD:
>
> Mac:
>
>      usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]
>
> FreeBSD:
>
>      usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwxy1,] [-D format]
> [file ...]
>
> So FreeBSD has added up "y,D:" (in getopt(3)-speak); my eyes are burning...
>

FreeBSD wouldn't need -, if there were a good filter to add , to large
numbers...  Some of the proliferation of options has been due to a lack of
proper building-blocks....

Warner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200305/ff2b9f5c/attachment.html>


More information about the TUHS mailing list