The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Arthur Krewat <krewat@kilonet.net>
To: tuhs@minnie.tuhs.org
Subject: Re: [TUHS] moving directories in svr2
Date: Fri, 31 Dec 2021 11:13:29 -0500	[thread overview]
Message-ID: <b1a971e3-9f84-45af-ea1b-2628c9ccc770@kilonet.net> (raw)
In-Reply-To: <CAP2nic3RWX=nS53xTF4096qFTYKB=y35hVGOXcoEforexZbG6w@mail.gmail.com>



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 <dgk@research.att.com>][-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 <dgk@research.att.com>][-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.


  reply	other threads:[~2021-12-31 16:20 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-30  3:45 Noel Chiappa
2021-12-30  4:02 ` Bakul Shah
2021-12-30 16:40 ` Theodore Ts'o
2021-12-30 22:31   ` Dan Cross
2021-12-31  0:43     ` Bakul Shah
2021-12-31  1:00       ` Rob Pike
2021-12-31  1:45         ` Bakul Shah
2021-12-31  2:23           ` Adam Thornton
2021-12-31 18:56       ` Chet Ramey
2021-12-31  3:08     ` Theodore Ts'o
2021-12-31  3:23       ` Rob Pike
2021-12-31  5:16         ` Theodore Ts'o
2021-12-31  5:21           ` Dan Cross
2021-12-31  5:55           ` Rob Pike
2021-12-31 13:32             ` Michael Kjörling
2021-12-31 15:53               ` Adam Thornton
2021-12-31 16:13                 ` Arthur Krewat [this message]
2021-12-31 18:17                 ` Dan Cross
2021-12-31 18:23                   ` Larry McVoy
2021-12-31 18:37                     ` Dan Cross
2021-12-31 18:29                   ` Arthur Krewat
2022-01-01  0:09                   ` Theodore Ts'o
2022-01-03 13:35                     ` Dan Cross
2022-01-03 20:23                       ` Theodore Ts'o
2022-01-03 20:45                         ` Warner Losh
2022-01-03 21:15                         ` Dan Cross
2022-01-03 22:26                           ` Theodore Ts'o
2022-01-03 23:10                             ` Dan Cross
2022-01-04 15:45                             ` Chet Ramey
2022-01-09 19:28                             ` Larry McVoy
2022-01-03 23:21                           ` Doug McIntyre
2022-01-03 23:37                             ` Adam Thornton
2022-01-04 14:49                               ` Stuart Remphrey
2022-01-03 23:44                             ` Larry McVoy
2022-01-03 23:56                               ` [TUHS] SMP: BSD vs System V (once was: moving directories in svr2) Greg 'groggy' Lehey
2022-01-07 19:01                                 ` Warner Losh
2022-01-09 17:31                                 ` Stuart Remphrey
2022-01-13  2:35                                 ` Kevin Bowling
2022-01-03 23:56                               ` [TUHS] moving directories in svr2 Warner Losh
2022-01-04  2:28                               ` Theodore Ts'o
2022-01-04  2:42                                 ` Larry McVoy
2022-01-04  9:28                                 ` [TUHS] Mythical Distress Sale (was Re: moving directories in svr2) Rob Gingell
2022-01-04 15:17                                   ` Larry McVoy
2022-01-04 15:26                                     ` arnold
2022-01-04 15:40                                       ` Larry McVoy
2022-01-04 15:48                                         ` Richard Salz
2022-01-03 22:57                         ` [TUHS] moving directories in svr2 Phil Budne
2022-01-04 15:40                         ` [TUHS] VRFs (was Re: moving directories in svr2) Derek Fawcus
2021-12-31  5:12       ` [TUHS] moving directories in svr2 Bakul Shah
  -- strict thread matches above, loose matches on Subject: below --
2021-12-29 19:33 Noel Chiappa
2021-12-30  3:40 ` Jay Logue via TUHS
2021-12-29 19:13 Douglas McIlroy
2021-12-29 19:37 ` Dan Cross
2021-12-29 20:15   ` Dan Cross
2021-12-29 20:42     ` Richard Salz
2021-12-29 20:58       ` Dan Cross
2021-12-29 21:20         ` Clem Cole
2021-12-30  3:15       ` Bakul Shah
2021-12-29 17:12 Douglas McIlroy
2021-12-29 16:59 Bakul Shah
2021-12-29 17:04 ` Clem Cole
2021-12-29 17:14 ` arnold
2021-12-29 17:38   ` Clem Cole
2021-12-29 17:49     ` Brantley Coile
2021-12-29 18:27       ` ron minnich
2021-12-29 20:59         ` Rob Pike
2021-12-29 14:33 Will Senn
2021-12-29 15:02 ` arnold
2021-12-29 15:38   ` Will Senn
2021-12-29 15:44     ` Richard Salz
2021-12-29 16:17       ` Clem Cole
2021-12-29 16:58         ` Richard Salz
2021-12-30  5:14         ` Dan Stromberg
2021-12-30 16:22           ` Clem Cole
2021-12-30 18:02           ` John Cowan
2021-12-30 23:04             ` Richard Salz
2021-12-29 15:17 ` Clem Cole
2021-12-29 15:44   ` Will Senn
2021-12-29 16:10     ` Clem Cole
2021-12-29 16:33       ` Warner Losh
2021-12-29 16:01   ` Bakul Shah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b1a971e3-9f84-45af-ea1b-2628c9ccc770@kilonet.net \
    --to=krewat@kilonet.net \
    --cc=tuhs@minnie.tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).