From owner-freebsd-arch@freebsd.org Sun Jan 27 03:52:13 2019 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6B0914BD881 for ; Sun, 27 Jan 2019 03:52:13 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (tunnel82308-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:ccb::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1AC9F851F4 for ; Sun, 27 Jan 2019 03:52:12 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.15.2/8.15.2) with ESMTP id x0R3q8g6058034; Sat, 26 Jan 2019 22:52:10 -0500 (EST) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.15.2/8.14.4/Submit) id x0R3q7r1058033; Sat, 26 Jan 2019 22:52:07 -0500 (EST) (envelope-from wollman) Date: Sat, 26 Jan 2019 22:52:07 -0500 (EST) From: Garrett Wollman Message-Id: <201901270352.x0R3q7r1058033@hergotha.csail.mit.edu> To: freebsd-rwg@pdx.rh.CN85.dnsmgr.net Subject: Re: Importing mksh in base References: <201901270019.x0R0JpF4096103@pdx.rh.CN85.dnsmgr.net> <32153.1548546852@kaos.jnpr.net> Organization: none Cc: freebsd-arch@freebsd.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (hergotha.csail.mit.edu [127.0.0.1]); Sat, 26 Jan 2019 22:52:10 -0500 (EST) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hergotha.csail.mit.edu X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2019 03:52:13 -0000 In article <201901270019.x0R0JpF4096103@pdx.rh.CN85.dnsmgr.net> you write: >Doesnt pdksh have a "sh" compatible mode iirc when you >invoke it via a path of sh it behaves as a traditional >bourne shell, also if IIRC Openbsd is doing just that, >/bin/sh -> /bin/pdksh (hard link) POSIX specifies the shell to be ksh88 (with some modifications for locale support). ksh93 has some different behavior from ksh88, but most (not all) of the ways in which it differs are compatible extensions to the POSIX shell. (The reason it's still called ksh93 today has to do with internal corporate legal bureaucracy that made it easier to release "updates" than a new "version".) Both the Almquist shell (which is the ancestor of our /bin/sh) and bash were aligned with the POSIX specification as it evolved, and the current /bin/sh and bash maintainers continue to participate in the Austin Group process for shell standardization. (Robert Elz, who maintain's NetBSD's version of the Almquist shell, also participates, as do the author of mksh and the author of the portable shell scripting library modernish. David Korn used to participate but has not been heard from in several years.) -GAWollman