From owner-freebsd-arch@freebsd.org Sun Jan 27 00:51:03 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 A5D6814B5574 for ; Sun, 27 Jan 2019 00:51:03 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 21A9B75FBD for ; Sun, 27 Jan 2019 00:51:03 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: by mailman.ysv.freebsd.org (Postfix) id D96DD14B5572; Sun, 27 Jan 2019 00:51:02 +0000 (UTC) Delivered-To: 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 B6D7F14B5571; Sun, 27 Jan 2019 00:51:02 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E5A7175FB8; Sun, 27 Jan 2019 00:51:01 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id nYf4gfdjcMRX3nYf6gKZ0U; Sat, 26 Jan 2019 17:51:00 -0700 X-Authority-Analysis: v=2.3 cv=TL87tGta c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=3JhidrIBZZsA:10 a=iKhvJSA4AAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=2xZF7mUm-BpYC6RCPDYA:9 a=CjuIK1q_8ugA:10 a=UJ0tAi3fqDAA:10 a=odh9cflL3HIXMm4fY7Wr:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 52E789E4; Sat, 26 Jan 2019 16:51:38 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x0R0owfM087683; Sat, 26 Jan 2019 16:50:58 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x0R0owQx087680; Sat, 26 Jan 2019 16:50:58 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201901270050.x0R0owQx087680@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: "Rodney W. Grimes" cc: "Simon J. Gerraty" , Cy Schubert , arch@freebsd.org, Baptiste Daroussin , freebsd-arch@freebsd.org Subject: Re: Importing mksh in base In-Reply-To: Message from "Rodney W. Grimes" of "Sat, 26 Jan 2019 16:19:51 -0800." <201901270019.x0R0JpF4096103@pdx.rh.CN85.dnsmgr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 26 Jan 2019 16:50:58 -0800 X-CMAE-Envelope: MS4wfJyLttC92cLkOIRxos7filqR7INJgM6r4tmISkHy33WYa+cUyRRdlNrhJNLGRlFL1TUr50K27pcQU31pVa5kFcdB7YALS3Kgn8T35kuK1DfhxAq/lA1z aCbaOsz/NPXshNWkpyhAQcxKJA6fQX5W6Socg51yUv9JWMaRqbFjijAykQFkbqfVOvPF5aRCoALh0iPzVEdLoM6kHEnCMgVByWvY62C6mA19wFjzU5IXPQkD PCxidu95LVLiRiBir8KfOdtYvtnUbyjCS2pBGMlxSUhgahXHqpdEBnjDVG4wtkq3F05Cbz10CWzWMDS3JuNPVQ== X-Rspamd-Queue-Id: E5A7175FB8 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.44 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RCVD_IN_DNSWL_LOW(-0.10)[9.134.59.64.list.dnswl.org : 127.0.5.1]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; RCPT_COUNT_FIVE(0.00)[6]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; NEURAL_HAM_SHORT(-0.98)[-0.975,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-1.76)[ip: (-4.43), ipnet: 64.59.128.0/20(-2.40), asn: 6327(-1.86), country: CA(-0.09)]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11] 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 00:51:03 -0000 In message <201901270019.x0R0JpF4096103@pdx.rh.CN85.dnsmgr.net>, "Rodney W. Gri mes" writes: > > Cy Schubert wrote: > > > Interactively ksh93's command completion listing looks unconventional > > > but it functions the same. > > > > > > However programmatically it's the standard. Large commercial vendors, > > > like Oracle, still require ksh for its array handling among other > > > things. > > > > pdksh (hence I assume mksh) has had array support for ages. > > The only thing I ever found it useful for was cd history, > > and I actually have an implementation of that for sh that does not need > > arrays. > > > > > It has that advantage. For embedded this is an advantage. However if > > > embedded is using ksh as a scripting language mksh and pdksh aren't > > > > As noted earlier I've used [pd]ksh as shell for 30 years. > > I do *not* write ksh scripts (except for .kshrc etc ;-) > > > > The beauty of ksh as interactive shell is it's (mostly) compatability > > with /bin/sh - which scripts should be written in. > > > > Now on some systems (HPUX springs to mind ;-) /bin/sh is so bad that > > one has to use ksh to run scripts - but they are still sh scripts. > > 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) IIRC ksh had an option that allowed it to be built as /bin/sh but I can't find the option any more. Maybe I was mistaken. The current ksh93 in ksh93-devel has bash support though. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.