MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

[Package Request] Package ksh93u+m for msys2.

Open ghost opened this issue 10 months ago • 4 comments

The msys2 repositories has mksh, but that is a public domain version of ksh88, there is another version of ksh released in 1993 which is community maintained to this day. That would be ksh93u+m. AT&T stopped maintaining ksh, so the community has decided to add new functionality and squash decades old bugs with a fork.

The upstream github repository which distros like debian or fedora package from, is here. This should be packaged for msys2 because huge amounts of new features that are native only to ksh93 such as compound variables which are C style structs and even some very rudimentary degree of object oriented capabilities. There are a lot of scripts out there that won't work in ksh88 because it uses the features only in 93.

Ksh88 (or rather mksh) should continue to be packaged, but would there be a conflict between ksh93 and ksh88? For a number of unix like systems, ksh is just a symlink to what the actual version it is.

ghost avatar Feb 14 '25 18:02 ghost

See https://github.com/kofemann/ms-nfs41-client/tree/master/cygwin/cygwin_ksh93 for the Cygwin package build scripts.

Please make sure that UNC path support, buitin commands work, and that you ship a usable /etc/ksh.kshrc (see https://github.com/kofemann/ms-nfs41-client/blob/master/cygwin/cygwin_ksh93/ksh.kshrc - that is similar to the /etc/ksh.kshrc we used in the Solaris ksh93-integration project when I was the project lead at SUN for that project)

gisburn avatar Mar 05 '25 09:03 gisburn

I got two issues, @gisburn and that would be:

  1. Setting the HOSTTYPE to "cygwin.i386-64" results in error that I must set CYGWIN to 'ntsec', but it won't accept the env.
  2. It cannot find cc1: cc: fatal error: cannot execute 'cc1': spawn: No such file or directory so I cannot go any further than that.

@lazka Sorry for pinging you suddenly, but do you have any idea what the issue could be?

ghost avatar Mar 06 '25 13:03 ghost

What is the status here? Are there any news? PLEASE, we need this package!!

brownmarkliam avatar May 23 '25 13:05 brownmarkliam

Are there any updates? We need ksh93 in MSYS2!!

mlwege avatar Aug 04 '25 13:08 mlwege