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: 3,125  
Website

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)


Brianna Ghey — Rest In Power

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: 3,125  
Website

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.


Brianna Ghey — Rest In Power

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

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)


Brianna Ghey — Rest In Power

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Linux ports of OpenBSD's ksh

Version 6.9 of loksh is now available:

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


Brianna Ghey — Rest In Power

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

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)


Brianna Ghey — Rest In Power

Offline

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

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

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


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

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

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)


Brianna Ghey — Rest In Power

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

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.


Brianna Ghey — Rest In Power

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Linux ports of OpenBSD's ksh

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


Brianna Ghey — Rest In Power

Offline

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

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

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: 3,125  
Website

Re: Linux ports of OpenBSD's ksh

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


Brianna Ghey — Rest In Power

Offline

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

golinux
Administrator
Registered: 2016-11-25
Posts: 3,317  

Re: Linux ports of OpenBSD's ksh

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

Have you been to view Queen yet?

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

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)


Brianna Ghey — Rest In Power

Offline

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

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.


Brianna Ghey — Rest In Power

Offline

#41 2022-10-29 13:46:53

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Linux ports of OpenBSD's ksh

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

#42 2022-10-30 11:08:11

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Linux ports of OpenBSD's ksh

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

Board footer