Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2019 22:03:46 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Cy Schubert <Cy.Schubert@cschubert.com>
Cc:        freebsd-arch@freebsd.org, arch@freebsd.org
Subject:   Re: Importing mksh in base
Message-ID:  <20190125210346.xzvrvuvr4rj3guov@ivaldir.net>
In-Reply-To: <66278F75-5162-46A5-BF2A-DC4C3F0F35BD@cschubert.com>
References:  <20190125165751.kpcjjncmf7j7maxd@ivaldir.net> <D43F06EE-A6A9-4F7D-BF81-8EC2298F86C9@cschubert.com> <C9B49E76-30FC-42FB-9B44-AC9740E26655@FreeBSD.org> <66278F75-5162-46A5-BF2A-DC4C3F0F35BD@cschubert.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <bapt@FreeBSD.org=
> wrote:
> >
> >
> >Le 25 janvier 2019 18:12:58 GMT+01:00, Cy Schubert
> ><Cy.Schubert@cschubert.com> a =E9crit :
> >>On January 25, 2019 8:57:51 AM PST, Baptiste Daroussin
> >><bapt@FreeBSD.org> 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)
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)

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

Overall I still think mksh is a better choice there

Best regards,
Bapt

--l7d7rf235ll3lmav
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlxLebAACgkQY4mL3PG3
Plq34A/9G3+rT3fDD9FX3yu1RlAhJcGhdEF8rMzFoZiGvZ8AoeVLZHlkOwLp342c
BSe+X9qEYRQ/hjEWLnOmyAaJDRL7re4xqLhd8y2jC4TaWyzpVlh5RcXuR55YneMD
g2dI/MgO9vqptMV7JR0+SYBCW+1CQko3ZPfa+GGJBQEe+hHsCI9gT9EvEbCKeQrr
S4VsRmX4yEeVcAqbQl27O7pFC3FSGQi/Q3Cb7x541uJl9KXLQT4v5UsoeoAGDwyk
9a2+yeS4FYc3YMZNP0St3PI/mr1GCWioIUSbOjtN1sUZKJijs2EL5P/pgw1rI3ci
7JiURiSuNUI6zPdMEKhEj+1VCUKRQ5KE4p0bEHxNj/wrXNasv65bZPaYcrMc84fX
mTxTAlz+PJc0xxCtkmKk8MPAqHgrY6q5QYycsjl6vGi+tt70dDuWVaapPaESDKc9
BCwmC365ggDJ64EPAAWeowmM59Vs5JdI861PAqyf1AyETFisXuy0rXSa6hUNk8mj
xlx7vCy/PEGhasZuZAy2y3qVYm4L3JyloReOy0Gs2oKLizx5BAedO4MqcrPFgPF3
1VyeHnfJCAwaF2UDvCKi3EHZdoFWgcwmaCN1UIaXDJmZNHw1h04YAKfz8419Am+9
TOwh+T0Srqj39voYBrfrua1X4o+hvyp9auhg2pUIiRog+pKQhsI=
=/miv
-----END PGP SIGNATURE-----

--l7d7rf235ll3lmav--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190125210346.xzvrvuvr4rj3guov>