From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id daaac212 for ; Thu, 5 Mar 2020 21:57:40 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 872919D78C; Fri, 6 Mar 2020 07:57:38 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 2D0959D778; Fri, 6 Mar 2020 07:57:14 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="nqEE5T2J"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 6662F9D778; Fri, 6 Mar 2020 07:57:11 +1000 (AEST) Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) by minnie.tuhs.org (Postfix) with ESMTPS id C1C4F9D777 for ; Fri, 6 Mar 2020 07:57:10 +1000 (AEST) Received: by mail-qv1-f48.google.com with SMTP id p3so53567qvq.0 for ; Thu, 05 Mar 2020 13:57:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o/5m+bWrsw/CaH8RmL5wlcUrKk9vxLLlWRCzAS72yDQ=; b=nqEE5T2Jtra35ob0Dfz4YNe1Nb29C92MdI0vFA58EOruJWkfPQFjt/NESK3/UZoqY/ NMs1wJL6OWK+fEz2Im1VxhC17Yj4Vy3+DM1y23UjcXNuaIW/vD33PQ2fw7Uh6cE+Eitj 4t1y3+oJPb7yZDjokixZdH8jst1lm94kIfJX6K+gncF8B8cpf/wf7CWfj9vHxEMuu2aQ qdiKgWrkhNkXtrM5oDgnM2F1gwnav6TfwMridYlsxy/ghtcosHsthZnyWCRx3uejYYxg GALvt7YZ3PI4d/7eglwRGUYQBwtOv59mPbDd8+rqw4GhPOCIPVa/lRIPCLZYq6NoK8Bd 1d2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o/5m+bWrsw/CaH8RmL5wlcUrKk9vxLLlWRCzAS72yDQ=; b=BskgR2iPgfl96KHJqHazqzhbdp97jAGAky4gfMnzdo1APbZh2ewJRknxw/nE02zHQT yVuh0QbA2bV8Qv8nGAf2zEt1RRG54no7zfN5pBHT0jTn4yKjti5BKWQj2wxHXVWblxx5 +TbhnpR0jP7nlAvOOR7USAI8Qb3xTOQ6+UrCTQ7cIfJPefSKJGaelATddjmahbWbsz1d 4xnjpRjyc5BIknMpgOQcN+MJgP5bjTNXVnhJxZi1w1Yydy00UACkh7y1Ck3HSG8CH+Mx TZHlDaR1M08RxpOIHJhe5LbDULlIXUuaTjxBBFg4fNeNJK0RimxAlAkfT+eTryzYv+OQ 7KFA== X-Gm-Message-State: ANhLgQ3B9u2Wtnnsd4KjRm2RIRsKQ2HW1lT1dYSxTjbiZZHVj0ijqde4 iwlm1jkkoAroPTMktOYVtlKxR37WEw5/PmLVvyofXA== X-Google-Smtp-Source: ADFU+vs6uzBC4vUgFob7KUjj3hdN0CT66nQuIG+mUu2LjV0yxg9Rx6WcPySWYe1NPqgLEG059Vi0i5fNwjDD871MZFI= X-Received: by 2002:a0c:e982:: with SMTP id z2mr375136qvn.22.1583445429775; Thu, 05 Mar 2020 13:57:09 -0800 (PST) MIME-Version: 1.0 References: <20200305020517.GA13872@wopr> In-Reply-To: From: Warner Losh Date: Thu, 5 Mar 2020 14:56:58 -0700 Message-ID: To: Dave Horsfall Content-Type: multipart/alternative; boundary="0000000000005d03d405a0229e66" Subject: Re: [TUHS] Command line options and complexity X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000005d03d405a0229e66 Content-Type: text/plain; charset="UTF-8" On Thu, Mar 5, 2020 at 2:51 PM Dave Horsfall 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 --0000000000005d03d405a0229e66 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, Mar 5, 2020 at 2:51 PM Dave H= orsfall <dave@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...=C2=A0 Interesting; I get differen= t
options with the Mac and FreeBSD:

Mac:

=C2=A0 =C2=A0 =C2=A0usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [fil= e ...]

FreeBSD:

=C2=A0 =C2=A0 =C2=A0usage: 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...=C2=A0 Some of the= proliferation of options has been due to a lack of proper building-blocks.= ...

Warner
--0000000000005d03d405a0229e66--