From owner-freebsd-arch@freebsd.org Fri Jan 25 21:29:35 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 148EF14C3A12 for ; Fri, 25 Jan 2019 21:29:35 +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 7F02A7395D for ; Fri, 25 Jan 2019 21:29:34 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: by mailman.ysv.freebsd.org (Postfix) id 41ECA14C3A10; Fri, 25 Jan 2019 21:29:34 +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 0260314C3A0F; Fri, 25 Jan 2019 21:29:34 +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 C11057395B; Fri, 25 Jan 2019 21:29:32 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id n92WgrQCU8uQmn92Xgq3Ni; Fri, 25 Jan 2019 14:29:30 -0700 X-Authority-Analysis: v=2.3 cv=XKpOtjpE c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=3JhidrIBZZsA:10 a=mi56gJdQAAAA:8 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=kMf0utG4AAAA:8 a=wglQ65jDwzm1rPw8EfoA:9 a=CjuIK1q_8ugA:10 a=of2mfszF-hMA:10 a=m6W23KLcDyq3lIHOBnQi:22 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=TTWE1O2ssfbasxdXZsrT:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id B461A1107; Fri, 25 Jan 2019 13:30:03 -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 x0PLTQV6008380; Fri, 25 Jan 2019 13:29:26 -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 x0PLTQAn008365; Fri, 25 Jan 2019 13:29:26 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201901252129.x0PLTQAn008365@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: Baptiste Daroussin cc: Cy Schubert , freebsd-arch@freebsd.org, arch@freebsd.org Subject: Re: Importing mksh in base In-Reply-To: Message from Baptiste Daroussin of "Fri, 25 Jan 2019 22:03:46 +0100." <20190125210346.xzvrvuvr4rj3guov@ivaldir.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 25 Jan 2019 13:29:26 -0800 X-CMAE-Envelope: MS4wfCYrdtrOMmz3+VI+ajG6Q8fgmcI3OZY4qaqB4u74h7WF+PC0MFr5nuykLf2UeChXDGF/Mi/60PQdTNuqXGP5MzJHGgiGEcddZGU2vRt+Os1OPIQQAyFj Vn+c+N/cKBScrX0k3mPb8vMe5oxoJRbBGkACgm+hG2YBkUd1gQx59qyriQ53mqixnE3/gSoy1tCz78BbLcdylGgdX1UGxJSMH4o6iydvqOG4znCGs6VNCS6u Jg8utETlaphAPX08srCwZQ== X-Rspamd-Queue-Id: C11057395B X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; 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]; TO_DN_SOME(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; NEURAL_HAM_SHORT(-0.91)[-0.911,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[9.134.59.64.list.dnswl.org : 127.0.5.1]; 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.80)[ip: (-4.61), ipnet: 64.59.128.0/20(-2.41), asn: 6327(-1.87), 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: Fri, 25 Jan 2019 21:29:35 -0000 In message <20190125210346.xzvrvuvr4rj3guov@ivaldir.net>, Baptiste Daroussin wr ites: > > > --l7d7rf235ll3lmav > Content-Type: text/plain; charset=iso-8859-1 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Fri, Jan 25, 2019 at 11:24:26AM -0800, Cy Schubert wrote: > > First time I've tried replying inline on this newer phone. Bear with me a= > s this reply may not look like I intend it to. > >=20 > > On January 25, 2019 11:07:55 AM PST, Baptiste Daroussin > wrote: > > > > > > > > >Le 25 janvier 2019 18:12:58 GMT+01:00, Cy Schubert > > > a =E9crit : > > >>On January 25, 2019 8:57:51 AM PST, Baptiste Daroussin > > >> wrote: > > >>>Hi everyone, > > >>> > > >>>I would like to import mksh in base, https://www.mirbsd.org/mksh.htm > > >>>And make it the default root shell (not necessary in one step) > > >>> > > >>>Why: > > >>>1/ it is tiny 400k (in the packaged version) all other shells fitting > > >>>the > > >>>expectation are bigger > > >>>2/ it's default frontend in interactive mode is very close to what > > >>most > > >>>people > > >>>are used to with bash and shells as default root shell on other BSD > > >>and > > >>>most > > >>>linuxes > > >>>3/ from my narrow window csh as a default root shell is one of the > > >>>major > > >>>complaint (usually the first thing a user get faced to) from new > > >>comers > > >>>and > > >>>also for some long timers who are reinstalling a machine and have not > > >>>yet > > >>>installed/configured a bourne compatible shell > > >>> > > >>>What this proposal is _NOT_ about: > > >>>1/ the removal of tcsh from base > > >>>2/ any kid of denial of the quality and interest or features of csh > > >>> > > >>>What do you think? > > >>>Best regards, > > >>>Bapt > > >> > > >>Why not ksh93 instead? It is the original and authoritative Korn > > >shell. > > >>EPL is compatible with the BSD license. Personally, I've been toying > > >>with the idea of importing ksh93 for a while now. > > >> > > > > > >The reason I chose mksh is because it is heavily maintained and from > > >the testing I have done it was the "nicer" interface > > > > >=20 > > Ksh93 is also heavily maintained. Look at their github activity. My ksh9= > 3-devel port has been tracking updates (I consider important). > > I gave a chance to ksh93-devel, my first impression are the following, as an > interactive shell, it looks nicer than I remembered (still prefer mksh thou= > gh) 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. > the completion looks "unexpected" but interesting I bet that can probably be > tuned (having a numbered list with fullpath of application I can do complet= > ion > on is not what I did expect) Completion is different. > > In emacs mode, the history search does not look great, (not it does not look > great as well in mksh, but less worse :)) > > In vi mode both seem to behave the same > > Manpages in both sides looks pretty complete > > mksh only depends on libc while ksh93 depends on libc, libexecinfo and libm > > on amd64: > ksh93 is 1.2M > mksh is 331k 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 100% compatible. Just so we know, It's interactive only and people would be well advised to install the port if doing any serious shell scripting. I think the size difference doesn't make up for the differences in scripting capability. (Yes, you can do arrays in bash but the syntax is different.) It really depends on what we want here. A full featured shell that can be used for ksh93 scripts or strictly as an interactive shell with incomplete support of the ksh88 standard. > > Overall I still think mksh is a better choice there Though I still disagree, a knob to disable it, WITHOUT_MKSH, would be a must as those who symlink to /usr/bin/ksh or /bin/ksh would be affected. And, -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. altering the order of PATH may put some between a rock and a hard place. A knob would be an absolute must.