Importing mksh in base

Simon J. Gerraty sjg at juniper.net
Sun Jan 27 00:44:56 UTC 2019


Rodney W. Grimes <freebsd-rwg at pdx.rh.CN85.dnsmgr.net> wrote:
> > 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)

It may - I've never tried.
I use ksh as an interactive shell, pdksh if no native ksh.
I use sh for scripts and back when I was exposed to customers using
HP-UX and the like, they (for good reason) didn't want anyone tampering
with /bin/sh

--sjg


More information about the freebsd-arch mailing list