oksh-noxz

[fork] Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
git clone https://noxz.tech/git/oksh-noxz.git
oksh-noxz

commit: 4c94c69373281e84275e5d8c7cfcb4747432873f
parent: be763a7ece0c9e98519839ac31ecf5b8be619012
author: Brian Callahan <bcallah@openbsd.org>
date:   Sat, 9 Oct 2021 18:46:13 -0400
Release oksh-7.0
MCVS/Entries58++++++++++----------
MREADME.md27++++-----
Mmain.c2+-
3 files changed, 44 insertions(+), 43 deletions(-)
diff --git a/CVS/Entries b/CVS/Entries
@@ -12,35 +12,35 @@
 /misc.c/1.76/Result of merge//
 /var.c/1.72/Result of merge//
 /vi.c/1.60/Result of merge+Fri Mar 12 03:48:27 2021//
-/CONTRIBUTORS/1.11/Thu Jun  3 17:46:02 2021//
-/LEGAL/1.2/Thu Jun  3 17:46:02 2021//
 /Makefile/1.39/Sun Jun 27 18:11:13 2021//
-/NOTES/1.16/Thu Jun  3 17:46:02 2021//
-/PROJECTS/1.9/Thu Jun  3 17:46:02 2021//
-/README/1.16/Sun Jun 27 18:11:13 2021//
-/alloc.c/1.19/Thu Jun  3 17:46:02 2021//
-/c_ksh.c/1.62/Thu Jun  3 17:46:02 2021//
-/c_sh.c/1.64/Thu Jun  3 17:46:02 2021//
-/c_test.h/1.4/Thu Jun  3 17:46:02 2021//
-/c_ulimit.c/1.29/Thu Jun  3 17:46:02 2021//
-/edit.h/1.12/Thu Jun  3 17:46:02 2021//
 /emacs.c/1.88/Result of merge//
-/expand.h/1.15/Thu Jun  3 17:46:02 2021//
-/expr.c/1.34/Thu Jun  3 17:46:02 2021//
-/jobs.c/1.62/Thu Jun  3 17:46:02 2021//
-/ksh.1/1.215/Sun Jun 27 18:11:13 2021//
-/lex.c/1.78/Thu Jun  3 17:46:02 2021//
-/lex.h/1.21/Thu Jun  3 17:46:02 2021//
-/mail.c/1.27/Thu Jun  3 17:46:02 2021//
-/path.c/1.23/Thu Jun  3 17:46:02 2021//
-/sh.1/1.153/Sun Jun 27 18:11:13 2021//
-/shf.c/1.34/Thu Jun  3 17:46:02 2021//
-/shf.h/1.8/Thu Jun  3 17:46:02 2021//
-/syn.c/1.39/Thu Jun  3 17:46:02 2021//
-/table.c/1.25/Thu Jun  3 17:46:02 2021//
-/table.h/1.15/Thu Jun  3 17:46:02 2021//
-/tree.c/1.34/Thu Jun  3 17:46:02 2021//
-/tree.h/1.12/Thu Jun  3 17:46:02 2021//
-/tty.h/1.6/Thu Jun  3 17:46:02 2021//
-/version.c/1.12/Thu Jun  3 17:46:02 2021//
+/CONTRIBUTORS/1.11/Fri Aug 20 19:32:00 2021//
+/LEGAL/1.2/Fri Aug 20 19:32:00 2021//
+/NOTES/1.16/Fri Aug 20 19:32:00 2021//
+/PROJECTS/1.9/Fri Aug 20 19:32:00 2021//
+/README/1.16/Sat Sep  4 14:25:21 2021//
+/alloc.c/1.19/Fri Aug 20 19:32:00 2021//
+/c_ksh.c/1.62/Fri Aug 20 19:32:00 2021//
+/c_sh.c/1.64/Fri Aug 20 19:32:00 2021//
+/c_test.h/1.4/Fri Aug 20 19:32:00 2021//
+/c_ulimit.c/1.29/Fri Aug 20 19:32:00 2021//
+/edit.h/1.12/Fri Aug 20 19:32:00 2021//
+/expand.h/1.15/Fri Aug 20 19:32:00 2021//
+/expr.c/1.34/Fri Aug 20 19:32:00 2021//
+/jobs.c/1.62/Fri Aug 20 19:32:00 2021//
+/ksh.1/1.215/Fri Aug 20 19:32:00 2021//
+/lex.c/1.78/Fri Aug 20 19:32:00 2021//
+/lex.h/1.21/Fri Aug 20 19:32:00 2021//
+/mail.c/1.27/Fri Aug 20 19:32:00 2021//
+/path.c/1.23/Fri Aug 20 19:32:00 2021//
+/sh.1/1.153/Fri Aug 20 19:32:00 2021//
+/shf.c/1.34/Fri Aug 20 19:32:00 2021//
+/shf.h/1.8/Fri Aug 20 19:32:00 2021//
+/table.c/1.25/Fri Aug 20 19:32:00 2021//
+/table.h/1.15/Fri Aug 20 19:32:00 2021//
+/tree.c/1.34/Fri Aug 20 19:32:00 2021//
+/tree.h/1.12/Fri Aug 20 19:32:00 2021//
+/tty.h/1.6/Fri Aug 20 19:32:00 2021//
+/version.c/1.12/Fri Aug 20 19:32:00 2021//
+/syn.c/1.40/Sat Sep  4 14:25:21 2021//
 D
diff --git a/README.md b/README.md
@@ -31,7 +31,7 @@ Supported systems
 * WSL2
 * Unixware 7
 * Haiku
-* HP-UX (only gcc tested)
+* HP-UX (gcc only)
 * SerenityOS
 
 Running on a system not listed here? Add it and send a pull request!
@@ -45,17 +45,18 @@ Help is greatly appreciated and encouraged!
 Supported compilers
 -------------------
 `oksh` is known to build with the following C compilers:
-* clang (https://llvm.org/)
-* gcc (https://gcc.gnu.org/)
-* pcc (http://pcc.ludd.ltu.se/)
-* cparser (https://pp.ipd.kit.edu/firm/)
-* xlc (https://www.ibm.com/us-en/marketplace/ibm-c-and-c-plus-plus-compiler-family)
-* Sun Studio compiler (https://www.oracle.com/technetwork/server-storage/developerstudio/overview/index.html)
-* lacc (https://github.com/larmel/lacc)
+* [clang](https://llvm.org/)
+* [gcc](https://gcc.gnu.org/)
+* [pcc](http://pcc.ludd.ltu.se/)
+* [cparser](https://pp.ipd.kit.edu/firm/)
+* [xlc](https://www.ibm.com/us-en/marketplace/ibm-c-and-c-plus-plus-compiler-family)
+* [Sun Studio compiler](https://www.oracle.com/technetwork/server-storage/developerstudio/overview/index.html)
+* [lacc](https://github.com/larmel/lacc)
 * Optimizing C Compilation System  (CCS) 4.2  03/27/14 (uw714mp5.bl4s)
-* Tiny C Compiler (https://bellard.org/tcc/)
-* CompCert (https://compcert.org/)
-* Nils Weller's C compiler (http://nwcc.sourceforge.net/)
+* [Tiny C Compiler](https://bellard.org/tcc/)
+* [CompCert](https://compcert.org/)
+* [Nils Weller's C compiler](http://nwcc.sourceforge.net/)
+* [cproc](https://sr.ht/~mcf/cproc/) (Currently requires a small tweak to ignore a volatile store error)
 
 Building with a compiler not listed here? Add it and send a pull request!
 
@@ -129,5 +130,5 @@ for details.
 
 Get a tarball
 -------------
-See releases tab. The latest release is oksh-6.9, which matches the ksh(1)
-from OpenBSD 6.9, released May 1, 2021.
+See releases tab. The latest release is oksh-7.0, which matches the ksh(1)
+from OpenBSD 7.0, released October 14, 2021.
diff --git a/main.c b/main.c
@@ -301,7 +301,7 @@ main(int argc, char *argv[])
 	setint(global("PPID"), (int64_t) ppid);
 	/* setstr can't fail here */
 	setstr(global(version_param), ksh_version, KSH_RETURN_ERROR);
-	setstr(global("OKSH_VERSION"), "oksh 6.9", KSH_RETURN_ERROR);
+	setstr(global("OKSH_VERSION"), "oksh 7.0", KSH_RETURN_ERROR);
 
 	/* execute initialization statements */
 	for (wp = (char**) initcoms; *wp != NULL; wp++) {