From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29364 invoked from network); 1 Aug 2021 17:48:43 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 1 Aug 2021 17:48:43 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 326079CA6D; Mon, 2 Aug 2021 03:48:42 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 3D68B9CA63; Mon, 2 Aug 2021 03:48:27 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=case.edu header.i=@case.edu header.b="P9V/ZsaC"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=case.edu header.i=@case.edu header.b="0RZZ0Kwk"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=case.edu header.i=@case.edu header.b="KD7ZrPup"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 8E0519CA63; Mon, 2 Aug 2021 03:48:25 +1000 (AEST) Received: from mpv3-2015.case.edu (mpv3-2015.CWRU.Edu [129.22.103.194]) by minnie.tuhs.org (Postfix) with ESMTPS id 726BE9CA60 for ; Mon, 2 Aug 2021 03:48:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=case.edu; s=smtp-primary; t=1627840103; bh=bWRyAAUK83p/qa0PDbOAwcQAR4v1734vNPnk0ABBnXQ=; h=Reply-To:Cc:Subject:To:References:From:Message-ID:Date: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=P9V/ZsaCdxCedg/PscRGg9NGdRmxLjkk9p2Y7pp7DaTqwfvWsgcLkGTXGDfhFcRjyg 8HCFMn1p3QmGA2erwK4N/oPTnjik4ZFslMGA++wdiPkAzuBdItAnNvGxalOh71+Mkvn mzLABix9XdfsXKzScZPWcWHsWllaT5v/2BgwkVtbsYTu7cOGEY538h8AGhrVk1VGJdA wLmJK4k3LZaiC6KJZm0i2g9cpT38BwFTcPxtRdbMlbHy1U54KXzxi2ScyYTtGG4jt6t AAbJ+hss2CxROMf+IEwWaXQNzxZngN4qpAonhrx4f6XiqsvVRRC9NZEhgJxvvftiyOm GYdIt7zg== Received: from mpv6-2015.CWRU.Edu (EHLO mpv6-2015.case.edu) ([129.22.103.202]) by mpv3-2015.case.edu (MOS 4.4.8-GA FastPath queued) with ESMTP id BXR70306; Sun, 01 Aug 2021 13:48:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=case.edu; s=smtp-primary; t=1627840102; bh=bWRyAAUK83p/qa0PDbOAwcQAR4v1734vNPnk0ABBnXQ=; h=Reply-To:Cc:Subject:To:References:From:Message-ID:Date: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=0RZZ0KwkgcfPC0R41Af5nY2QV0sSHKHXguhPTAOEpwuFlpuXWQYEirrW9Ry35YGnzP eHzVz7n/ilczWq9j2U+KEuPuRfulZ4wQP3RXS4kIJL5yPZdsomOYJqqzWPQpQI9B/qp oYtPgrukNQICHegwAS/OgsWjPyEltVWLGoiqOBj8xHJnDNebvFCRDWQylENiGBZZJsi outr8MWdVRGU9YeICTo0Oqadmp507zfVGDM5sAqUd4SI4yMIafNazHLXahFOWehbeTk 9zzBhcQA1Jvl4nijualqNa57jXE58Ux2H18e/Q2Rc86e+pRNIyVTEQwby8oSIp3+Pw4 04dyyYmg== Received: from mail-qk1-f199.google.com (EHLO mail-qk1-f199.google.com) ([209.85.222.199]) by mpv6-2015.case.edu (MOS 4.4.8-GA FastPath queued) with ESMTP id GJF74933; Sun, 01 Aug 2021 13:48:22 -0400 (EDT) Received: by mail-qk1-f199.google.com with SMTP id bm25-20020a05620a1999b02903a9c3f8b89fso9897404qkb.2 for ; Sun, 01 Aug 2021 10:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=case.edu; s=g-case; h=reply-to:cc:subject:to:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zpL9qLo5UdM82qPVGp2CtcjM9TpWjTuYWcyrlliF7OA=; b=KD7ZrPupAU4lvaAo89gfF2rHwo8hr35NutXhRLGuP4GCypouGochYm17qQPtFEmxwJ cuVpcK1mztetzGYx+QFahPuiXRmuDMa5Z+4wPo/0Cff2A2vC4AcPVyHxzkHeyhSnJeFm Q3+6jqFesoIAr1kITqzOJ/W84uLE7z3FoS9vLbRZkypHOnfUpLwnLyVgy35xgQVOVMCo KQG5TA0EShNcINn0RC9dE59iPJZDpfLkwVOjXXC11XOXURkU0urPX24IJR719AwJpdrC lnCXKJMgk8ZnuPzRsDTUcXdx/TVo2M3oELJNjZ+vQW0znwm+fUNec+N+nzgccsN4s/yW q6xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:cc:subject:to:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=zpL9qLo5UdM82qPVGp2CtcjM9TpWjTuYWcyrlliF7OA=; b=UzSB2abNhw/+gWJl7yzEj2OMga/FXm+FemLun/4mI4wTDb2slx1DuJhFIxaKifXRyB nXZofEu1mawCUAiyYZi9glVueFdSbSAwNFsVdkUjNRkFp29GGDvrsg8VrWjPQpYN3snn eBC96xvQ0IBCJn94FwWEiYkM+reQb6T5XIq+CQ2ogDb/X5aG4rQmsqI8jmChajYHsGmt 2U/bwlYQ0cdtyYlBnlyuvCqOuHub6UjTJVLoE08KXwoo1mnb2YgGe64E/Ybcw9AGQti6 62BTiRCV4u4Pamem8QQo0dkWMjb4mVH/p8G6KjI+fc10EJUJXfwadxoWQDKO/sCRyOsu G+ow== X-Gm-Message-State: AOAM533oCwcEZxJMp/IPGKFC+UI4aAh5px6Yq4qJj8+/9ANtguvL28vT uNB3yFoKgjvQANLKclQsih4YIH4JV5qSXb1jSyrErsfqsMhR0DoQQ3ClzdCO0NZmS95BFQs9Er6 ezyb+EL2nCkzoUMg4 X-Received: by 2002:a05:6214:1c4d:: with SMTP id if13mr12495180qvb.56.1627840101487; Sun, 01 Aug 2021 10:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTbsoZQLID7ZPBKM9kajqRCZd46hnpbyHkLt5NONmDWhMLhsefjANtPie4v8y536JRFZ7csg== X-Received: by 2002:a05:6214:1c4d:: with SMTP id if13mr12495172qvb.56.1627840101267; Sun, 01 Aug 2021 10:48:21 -0700 (PDT) Received: from ?IPv6:2603:6010:dc07:54e3:bc89:b2e3:dbe8:235? (2603-6010-dc07-54e3-bc89-b2e3-dbe8-0235.res6.spectrum.com. [2603:6010:dc07:54e3:bc89:b2e3:dbe8:235]) by smtp.gmail.com with ESMTPSA id j127sm4467575qkf.20.2021.08.01.10.48.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Aug 2021 10:48:20 -0700 (PDT) To: Michael Siegel , Anthony Martin References: <20210731142533.69caf929@moon> <20210731205609.07e8149f@moon> From: Chet Ramey Organization: ITS, Case Western Reserve University Message-ID: <656b68de-fc95-d75f-1d93-8d6410296d00@case.edu> Date: Sun, 1 Aug 2021 13:48:19 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210731205609.07e8149f@moon> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Mirapoint-IP-Reputation: reputation=Good-1, source=Queried, refid=tid=0001.0A742F8E.6106DD45.0008, actions=tag X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A742F15.6106DE66.000D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2016-11-06 16:00:04, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 6b387da3708df4e559b5ac0476e8021c X-Mirapoint-IP-Reputation: reputation=good-1, source=Fixed, refid=n/a, actions=tag X-Junkmail-Status: score=8/80, host=mpv3-2015.case.edu X-Junkmail-PrAS-Raw: score=8/80, refid=2.7.2:2021.8.1.163915:17:8.317, ip=, rules=__YOUTUBE_RCVD, DKIM_SIGNATURE, __X_GOOGLE_DKIM_SIGNATURE, __X_GM_MESSAGE_STATE, __X_GOOGLE_SMTP_SOURCE, __HAS_REPLYTO, __HAS_CC_HDR, __MULTIPLE_RCPTS_CC_X2, __SUBJ_REPLY, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __TO_MALFORMED_2, __MULTIPLE_RCPTS_TO_X2, __TO_NAME, __TO_NAME_DIFF_FROM_ACC, __HAS_REFERENCES, __REFERENCES, __HAS_FROM, FROM_EDU_TLD, __HAS_MSGID, __SANE_MSGID, DATE_TZ_NA, __USER_AGENT, __MOZILLA_USER_AGENT, __MIME_VERSION, __IN_REP_TO, __CT, __CT_TEXT_PLAIN, __CTE, __REPLYTO_SAMEAS_FROM_ADDY, __REPLYTO_SAMEAS_FROM_ACC, __FROM_DOMAIN_IN_ANY_CC2, __RCPT_DOMAIN_NOT_TO, __REPLYTO_SAMEAS_FROM_DOMAIN, __DKIM_ALIGNS_1, __DKIM_ALIGNS_2, __ANY_URI, __URI_MAILTO, __HTTPS_URI, __URI_WITH_PATH, __URI_ENDS_IN_SLASH, URI_ENDS_IN_HTML, __CP_URI_IN_BODY, __SUBJ_ALPHA_NEGATE, __MULTIPLE_URI_TEXT, __URI_IN_BODY, __URI_NOT_IMG, [TRUNCATED], so=2010-03-03 19:42:08, dmn=2016-08-03-0138 Subject: Re: [TUHS] Systematic approach to command-line interfaces 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: , Reply-To: chet.ramey@case.edu Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On 7/31/21 2:56 PM, Michael Siegel wrote: > Am Sat, 31 Jul 2021 10:30:18 -0700 > schrieb Anthony Martin : > >> Michael Siegel once said: >>> So, I've prepared a bit of a write-up, pondering on the pros and >>> cons of two different ways of having task-specific tool sets >>> (non-hierarchical command sets vs. sub-commands) that is available >>> at >>> >>> https://www.msiism.org/files/doc/unix-like_command-line_interfaces.html >>> >>> I tend to think the sub-command approach is better. But I'm neither >>> a UI nor a Unix expert and have no formal training in computer >>> things. So, I thought this would be a good place to ask for comment >>> (and get some historical perspective). >> >> You're missing the approach taken in Plan 9 (and >> 10th edition Unix): put related commands in a >> directory and use a shell that doesn't restrict >> the first argument of a command to a single path >> element. >> >> This lets you execute commands like: >> >> auth/as >> disk/prep >> git/rebase >> ip/ping >> ndb/dns >> upas/send >> >> without having a prefix on every command name or >> single large binaries with every command linked >> in as subcommands. > > Thanks for pointing this out. I had no idea. > > Unfortunately(?), I'm looking to make my life easier on more "Unix-like > Unix-like systems" (for want of a better term), for the time being > (Linux, BSD, maybe illumos). (I mean, which shell would I use to > accomplish this on Unix?) POSIX forbids this behavior, FWIW, so you'll probably have a hard time finding a shell -- at least one with POSIX aspirations -- that implements it. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/