Skip to content

[Package Request] Package ksh93u+m for msys2. #5213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xeiavicaflashrepository opened this issue Feb 14, 2025 · 2 comments · May be fixed by #5243
Open

[Package Request] Package ksh93u+m for msys2. #5213

xeiavicaflashrepository opened this issue Feb 14, 2025 · 2 comments · May be fixed by #5243

Comments

@xeiavicaflashrepository
Copy link
Contributor

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.

@gisburn
Copy link

gisburn commented Mar 5, 2025

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)

@xeiavicaflashrepository
Copy link
Contributor Author

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?

@jeremyd2019 jeremyd2019 linked a pull request Mar 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants