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=-1.2 required=5.0 tests=MAILING_LIST_MULTI, NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16508 invoked from network); 31 Dec 2021 16:20:43 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 31 Dec 2021 16:20:43 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 8A7E59D03D; Sat, 1 Jan 2022 02:20:41 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id EBE1B9CF51; Sat, 1 Jan 2022 02:20:22 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 957539CF51; Sat, 1 Jan 2022 02:20:19 +1000 (AEST) X-Greylist: delayed 438 seconds by postgrey-1.36 at minnie.tuhs.org; Sat, 01 Jan 2022 02:20:19 AEST Received: from p3plsmtpa08-03.prod.phx3.secureserver.net (p3plsmtpa08-03.prod.phx3.secureserver.net [173.201.193.104]) by minnie.tuhs.org (Postfix) with ESMTPS id 332549CF06 for ; Sat, 1 Jan 2022 02:20:19 +1000 (AEST) Received: from kilonet.net ([108.30.24.253]) by :SMTPAUTH: with ESMTPA id 3KWan0lpbNUjt3KWanx0VD; Fri, 31 Dec 2021 09:13:00 -0700 X-CMAE-Analysis: v=2.4 cv=GsGHRm5C c=1 sm=1 tr=0 ts=61cf2c0c a=DPaANz7MSPdDiKJlpBZCUg==:117 a=DPaANz7MSPdDiKJlpBZCUg==:17 a=IkcTkHD0fZMA:10 a=IOMw9HtfNCkA:10 a=zQP7CpKOAAAA:8 a=JIVOxcAaAAAA:8 a=c2SDPmc3AAAA:8 a=1fwN-JCZk1PgsEm4CmoA:9 a=QEXdDO2ut3YA:10 a=-iw8RS33oowA:10 a=Rf4Fe1ulKO9bnKok9NOZ:22 X-SECURESERVER-ACCT: krewat@kilonet.net Received: from [199.89.231.103] (flatcat.kilonet.net [199.89.231.103]) by kilonet.net (Postfix) with ESMTP id 127792168674D for ; Fri, 31 Dec 2021 11:13:00 -0500 (EST) Message-ID: Date: Fri, 31 Dec 2021 11:13:29 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Content-Language: en-US To: tuhs@minnie.tuhs.org References: <20211230034512.B9B3718C08E@mercury.lcs.mit.edu> <97f563fa-5a17-424b-acc6-07cf127f496d@localhost> From: Arthur Krewat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfF8foU6GscSvgiajCoSoavRFMlnpS/koD1x+tV/EMb02g7lH3vrAGosSC9UGfyUNeAGCklzrFbQdUA5Cpw1l6f32XnFOccVK2ZGSTwNfa26QkcQVnqzt heHX+ImWwDsNAsmGI4BUgrE99kR5qIzzUJHQ20oP3U5RLgGGAkKffWXccgKD9DBlKx5m1OTG9SiH6w== Subject: Re: [TUHS] moving directories in svr2 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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" On 12/31/2021 10:53 AM, Adam Thornton wrote: > Slightly older, but also slightly more fundamental to the system, you > need look no farther than Solaris's `/bin/sh` for an illustrated > example of the pros and cons of maintaining backwards compatibility.  > It was a pain by, say, 2007, to have to check if you were running on > SunOS and use `/usr/xpg4/bin/sh` (IIRC) if you wanted a POSIX > shell--by that point the other major vendors (and Linux) had something > POSIX as the default shell.  But Sun had an installed user base with a > bunch of shell scripts that depended on pre-POSIX semantics. Did some checking, at the risk of going off-topic: Solaris 11.4 (current patch level, 11.4.40.107.3, December 2021): /bin/sh looks to be Korn shell. root@mercury:~# ls -l /bin/sh -r-xr-xr-x   5 root     bin      2946936 Dec 22 10:46 /bin/sh root@mercury:~# strings /bin/sh | grep Korn | head -1 ][-author?David Korn ][-copyright?Copyright (c) 1982-2021 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libshell][+NAME? root@mercury:~# sh --version   version         sh (AT&T Research) 93u+ 2012-08-01 Solaris 11.3: /bin/sh seems to be Korn shell. medusa# ls -l /bin/sh lrwxrwxrwx   1 root     root          11 Jun 11  2016 /bin/sh -> amd64/ksh93 medusa# ls -lL /bin/sh -r-xr-xr-x   8 root     bin      2601344 Jul  1  2016 /bin/sh medusa# strings !$ | grep dgk | head -1 strings /bin/sh | grep dgk | head -1 ][-author?David Korn ][-copyright?Copyright (c) 1982-2016 AT&T Intellectual Property][-license?http://www.eclipse.org/org/documents/epl-v10.html][--catalog?libshell][+NAME? medusa# sh --version   version         sh (AT&T Research) 93u+ 2012-08-01 Solaris 10: (seems /bin/sh is still Bourne at this point): zeus<@medusa.kilonet.net># ls -l /bin/sh lrwxrwxrwx   1 root     root          13 Jun  6  2014 /bin/sh -> ../../sbin/sh zeus<@medusa.kilonet.net># ls -lL /bin/sh -r-xr-xr-x   1 root     root       82456 Sep 22  2010 /bin/sh sh --version just opens a new shell.