instructions for installing and running mksh on Fedora
say to run it as a login shell: mksh -l
after yum installation. Well that appears to be broken …
[usr@localhost ~]$ mksh -l
mksh: /etc/profile.d/PackageKit.sh[14]: syntax error: unexpected
operator/operand '=~'
#!/bin/mksh -l
# if you make this a -l login shell above then it errors in fc29
# Fedora 29 just like when you install mksh and run: mksh -l
# in the method: command_not_found_handler() in: PackageKit.sh
# similarly because it runs the real /etc/profile.d/PackageKit.sh
# which has the error above in it based on a similar test to this...
if [[ -n "${ZSH_VERSION-}" ]]; then
echo "would run command_not_found_handler() here with error..."
# command_not_found_handler () {
# command_not_found_handle "$@" && return 127
# }
fi
perhaps a similar test for KSH_VERSION to avoid running
the broken method: command_not_found_handler ()
would work?
I just do not understand enough about what PackageKit.sh
is actually for in order to fix it myself.
my workaround is to not use: mksh -l
and instead just source my ~/.mkshrc
profile in after launching MirBSD Korn Shell: mksh
from bash.
that gets me by so I can work on my ed.mksh editor kit
for my Android tablets (FireHD 10 and Samsung Tab A 8)
running Termius local shells.