OpenMandrivaAssociation / distribution

OpenMandriva Lx is an exciting free Desktop Operating System that aims to cater to and interest first time and advanced users alike. It has the breadth and depth of an advanced system but is designed to be simple and straightforward in use.
https://openmandriva.org
8 stars 2 forks source link

mksh as /bin/sh #2763

Open berolinux opened 2 years ago

berolinux commented 2 years ago

Bash is good, but slow -- some (mostly Debian derived) distros have switched to dash for performance reasons, but dash is not really usable (no command line editing, no here string, etc.) mksh is a good compromise, it's perfectly usable even as an interactive shell, slightly less feature rich than bash (which of course can still be available), and slightly slower than dash.

tpgxyz commented 2 years ago

mksh is ready to act as /bin/sh :) I can toggle this to on.

tpgxyz commented 2 years ago

Current list of packages that requires /bin/sh, mostly because rpm requires generator catched #!/bin/bash in some output file while building these:

        /bin/bash is needed by (installed) alsa-utils-1.2.6-1.aarch64
        /bin/bash is needed by (installed) glibc-6:2.35-1.aarch64
        /bin/bash is needed by (installed) locales-6:2.35-1.aarch64
        /bin/bash is needed by (installed) chkconfig-1.15-2.aarch64
        /bin/bash is needed by (installed) dracut-056-2.aarch64
        /bin/bash is needed by (installed) dtc-1.6.1-1.aarch64
        /bin/bash is needed by (installed) e2fsprogs-1.46.5-1.aarch64
        /bin/bash is needed by (installed) efi-srpm-macros-5-1.noarch
        /bin/bash is needed by (installed) setup-2.9.4-1.noarch
        /bin/bash is needed by (installed) smartmontools-7.3-1.aarch64
        /bin/bash is needed by (installed) mdadm-4.2-1.aarch64
        /bin/bash is needed by (installed) plymouth-scripts-0.9.6-1.20220311.9.noarch
        /bin/bash is needed by (installed) modemmanager-1.18.6-1.aarch64
        /bin/bash is needed by (installed) ppp-2.4.9-2.aarch64
        /bin/bash is needed by (installed) pulseaudio-15.0-4.aarch64
        /bin/bash is needed by (installed) mock-2.16-3.noarch
        /bin/bash is needed by (installed) openssh-server-8.6p1-9.aarch64
        /bin/bash is needed by (installed) xfsprogs-5.14.2-1.aarch64
        /bin/bash is needed by (installed) less-600-1.aarch64
        /bin/bash is needed by (installed) xz-5.2.5-3.aarch64
        /bin/bash is needed by (installed) rpmdevtools-9.6-1.noarch