The officially official Devuan Forum!

You are not logged in.

#26 2021-01-10 10:13:29

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

ifdv44 wrote:

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)

Offline

#27 2021-01-10 14:02:05

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Linux ports of OpenBSD's ksh

imo, under debian i would prefer mksh over ksh93 and ksh2020. I use openbsd and their version of the ksh shell works on openbsd system very well.

Last edited by dice (2021-01-10 14:08:22)

Offline

#28 2021-01-10 16:06:09

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

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.

Offline

#29 2021-05-01 07:22:13

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

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)

Offline

#30 2021-05-01 10:31:06

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

Version 6.9 of loksh is now available:

https://software.opensuse.org//download … kage=loksh

Offline

#31 2021-10-10 11:12:59

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

Version 7.0 of oksh is now available. So Linux has it before OpenBSD big_smile

Last edited by Head_on_a_Stick (2021-10-10 13:01:18)

Offline

#32 2021-10-10 17:39:42

zapper
Member
Registered: 2017-05-29
Posts: 439  

Re: Linux ports of OpenBSD's ksh

Head_on_a_Stick wrote:

Version 7.0 of oksh is now available. So Linux has it before OpenBSD big_smile

That is ironic, but I wonder which has the more secure version... tongue

No offense, but OpenBSD devs probably are more security conscious... wink


Black Lives Matter!  I am white, but I prefer equality over hatred.
Haughtiness comes before a fall, pride before destruction.
Peace be with you!
No one can serve two masters. Either you will hate the one and love the other, or you will be devoted to the one and despise the other. You cannot serve both God and mammon!

Offline

#33 2021-10-10 18:56:25

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

zapper wrote:

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 smile

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)

Offline

#34 2022-04-28 13:25:21

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

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.

Offline

#35 2022-04-29 12:07:50

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

Version 7.1 of oksh is now building and should be available soon.

Offline

#36 2022-09-16 22:46:08

rbit
Member
Registered: 2018-06-12
Posts: 22  

Re: Linux ports of OpenBSD's ksh

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

#37 2022-09-16 23:47:43

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

Oops, thanks for reporting. I'll have to fix it tomorrow. Bear with me.

Offline

#38 2022-09-17 01:27:01

golinux
Administrator
Registered: 2016-11-25
Posts: 2,605  

Re: Linux ports of OpenBSD's ksh

@HoaS . . . Sorry for the OT but I have to ask . . .

Have you been to view Queen yet?

Online

#39 2022-09-17 09:19:05

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

@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)

Offline

#40 2022-09-17 23:28:41

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,536  

Re: Linux ports of OpenBSD's ksh

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.

Offline

Board footer