From owner-freebsd-arch@freebsd.org Sun Jan 27 00:44:44 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 352AE14B5225; Sun, 27 Jan 2019 00:44:44 +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 2753B75A8B; Sun, 27 Jan 2019 00:44:43 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id nYYsgfamzMRX3nYYugKY7C; Sat, 26 Jan 2019 17:44:36 -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=ymjG5ZiqAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=qSb1u5CYajfrWvpzu8sA:9 a=CjuIK1q_8ugA:10 a=UJ0tAi3fqDAA:10 a=9NY4Jsdw3mG8vwb630s1: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 1D8BF9A0; Sat, 26 Jan 2019 16:45:14 -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 x0R0iYbd083453; Sat, 26 Jan 2019 16:44:34 -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 x0R0iXvj083450; Sat, 26 Jan 2019 16:44:33 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201901270044.x0R0iXvj083450@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: "Simon J. Gerraty" cc: Cy Schubert , Baptiste Daroussin , arch@FreeBSD.org, freebsd-arch@FreeBSD.org Subject: Re: Importing mksh in base In-Reply-To: Message from "Simon J. Gerraty" of "Sat, 26 Jan 2019 15:54:12 -0800." <32153.1548546852@kaos.jnpr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 26 Jan 2019 16:44:33 -0800 X-CMAE-Envelope: MS4wfJVV9Vt6BYjNSksnQjOXgB9SL7Z5yy6D2+WU5JlONKkEBT+KPmwCeq+wyoYbOHRRd6N3hHAcDgSRVDfyFa9A0XNvgSf8aHiNQkKxcbp1jGkh6O+lRMPX X3VhX1iDDFKNmUyYebfH25cp2IgiLJ/Xf04mIRvvqNLr/wxiD1vPSHTeBu+dSt4ApLgB6di+4Q7nqNxvNqrVP1nymB8g1gqSFp0z95YIJZQfzfJ5vKCWH5Xg bPl0pSgigTVIsHIxjtJFPEEsKrT6ODAgcs8FtWiIn7A= X-Rspamd-Queue-Id: 2753B75A8B X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.46 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11]; 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)[5]; 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.977,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.78)[ip: (-4.52), ipnet: 64.59.128.0/20(-2.41), asn: 6327(-1.86), country: CA(-0.09)]; RCVD_IN_DNSWL_LOW(-0.10)[9.134.59.64.list.dnswl.org : 127.0.5.1] 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:44:44 -0000 In message <32153.1548546852@kaos.jnpr.net>, "Simon J. Gerraty" 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. IIRC it's not compatible. > > > 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. Looking at ksh93-devel sources there is a SHOPT_BASH option, which emulates a Bash shell. The emulation is not complete though. 14-06-02 +When compiled with the SHOPT_BASH and run with the name bash, the shell now uses dynamic scoping for name() and function name. In addition the builtins declare and local are supported. The SHOPT_BASH option is on by default in the Makefile. More work remains with the bash compatibility option. > > 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. IMO HP/UX is as good as dead. I've never had anything good to say about HP/UX. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.