You are not logged in.
Any quick and easy reference to the pros/cons of the three?
Not that I know of.
Note that the situation in respect of ksh93 & ksh2020 has changed since my quoted post — the development of ksh2020 has been stopped because the KornShell community complained about the management of the project and also noted some performance regressions:
https://github.com/att/ast/issues/1449
So as of now the only currently developed KornShell implementations are mksh and OpenBSD's ksh. The packages supplied by my repositories are a Linux-specific port of OpenBSD's ksh (loksh) and a port of the same software by one of the OpenBSD developers which is designed specifically for usage with any operating system. The mksh package in De{bi,vu}an was created by the developer of mksh, who is also a Debian developer.
Last edited by Head_on_a_Stick (2021-01-10 10:15:10)
Brianna Ghey — Rest In Power
Offline
The mksh site has an overview of the various KornShell implementations:
http://www.mirbsd.org/mksh-faq.htm#kornshell
Mksh is used as the default shell for Android so it is probably the most popular of all the shells, bash included.
Brianna Ghey — Rest In Power
Offline
Version 6.9 of oksh is now available:
https://software.opensuse.org//download … ckage=oksh
Last edited by Head_on_a_Stick (2021-05-01 07:23:46)
Brianna Ghey — Rest In Power
Offline
Version 6.9 of loksh is now available:
Brianna Ghey — Rest In Power
Offline
Version 7.0 of oksh is now available. So Linux has it before OpenBSD
Last edited by Head_on_a_Stick (2021-10-10 13:01:18)
Brianna Ghey — Rest In Power
Offline
Version 7.0 of oksh is now available. So Linux has it before OpenBSD
That is ironic, but I wonder which has the more secure version...
No offense, but OpenBSD devs probably are more security conscious...
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Offline
OpenBSD devs probably are more security conscious
The oksh package is of a port by Dr. Brian Callahan, who is an actual OpenBSD developer. My repository is linked directly from their github README.md
But yes, the OpenBSD version is more secure because Linux doesn't have things like unveil(2) & pledge(2).
Last edited by Head_on_a_Stick (2021-10-10 18:57:03)
Brianna Ghey — Rest In Power
Offline
Version 7.1 of loksh is now building and should be available soon.
Sorry for the delay, I was waiting for ibara@ to update their version but it looks like they're busy atm.
Brianna Ghey — Rest In Power
Offline
Version 7.1 of oksh is now building and should be available soon.
Brianna Ghey — Rest In Power
Offline
FYI, after adding repository, apt install loksh says...
Preparing to unpack .../archives/loksh_7.1-1_amd64.deb ...
Unpacking loksh (7.1-1) ...
Setting up loksh (7.1-1) ...
update-alternatives: error: alternative path /bin/loksh doesn't exist
dpkg: error processing package loksh (--configure):
installed loksh package post-installation script subprocess returned error exit status 2
loksh is located in /usr/bin, not in /bin
This occurred in devuan chimaera
Last edited by rbit (2022-09-16 22:47:51)
Offline
Oops, thanks for reporting. I'll have to fix it tomorrow. Bear with me.
Brianna Ghey — Rest In Power
Offline
@HoaS . . . Sorry for the OT but I have to ask . . .
Have you been to view Queen yet?
Offline
@rbit: apologies for the issue, all my tests were conducted on boxen with usrmerge, which link /usr/bin/loksh to /bin/loksh automatically and so don't suffer this error.
I'll have to decide how best to fix it but I should have it working again very soon. The oksh package installs to /bin/oksh and so will work without usrmerge.
Sorry for the trouble.
@golinux: I was considering it but my mobility issues prevent me from queuing that long but are not serious enough to consider entry to the disabled line. I've had the live stream of Westminster Hall running in the background though, it is oddly compelling.
Last edited by Head_on_a_Stick (2022-09-17 09:19:55)
Brianna Ghey — Rest In Power
Offline
I've taken the easiest option and just edited the postinst & prerm scripts to refer to /usr/bin/loksh. I'll consider moving the binary to /bin/ (where hier(7) says it should be) at a later date.
Version 7.1-2 of loksh is building now and should be available soon. I've tested installation to non-usrmerged systems so it should all work.
Brianna Ghey — Rest In Power
Offline
Version 7.2-1 of both oksh and loksh are now available. I've not managed to move the loksh binary yet but it should still work with non-usrmerged systems. Please post here if it doesn't.
Brianna Ghey — Rest In Power
Offline
Off topic for this forum but any Alpine Linux users can expect to see my oksh package in the next release — it's been moved from [testing] to [community] :-)
EDIT: and I've just upgraded that to 7.2 as well ofc.
EDIT2: holy crap, 7.1 was part of Alpine's 3.16 release. I didn't even realise...
Last edited by Head_on_a_Stick (2022-10-30 11:21:49)
Brianna Ghey — Rest In Power
Offline