From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 26 Jul 2013 08:59:30 +0200 From: Jens Staal To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20130726085930.6909f7e9@Krypton> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Cc: Thorsten Glaser Subject: [9fans] MirOS ksh (mksh) building out-of-the box on Plan9/APE Topicbox-Message-UUID: 6d1e0fe8-ead8-11e9-9d60-3106f5b1d025 Dear all, =46rom yesterday upstream mksh (cvs and future R48 and onwards) builds out of the box on Plan9 simply by: ape/psh ./Build.sh One issue remains and that is that the shell will get "stuck" after executing an external command. To build a working shell, there is a temporary work-around by issuing: CFLAGS=3D"-DMKSH_NOPROSPECTOFWORK" ./Build.sh This disables a number of features in the shell. I have uploaded an R47 build with the modified Build.sh (with -DMKSH_NOPROSPECTOFWORK) at /n/sources/contrib/staal1978/pkg/mksh-R47.tbz. In order to get a fully-functional mksh, something needs to be fixed host-side. A good guess is that it is the way APE handles SIGCHLD, since the same "freezing" has occurred on a number of other ports of mksh: http://www.mail-archive.com/miros-mksh@mirbsd.org/msg00215.html Is there interest in fixing SIGCHLD on APE and if so, what would be the best approach? If there is interest, it would thus be entirely possible to have an upstream, modern and mantained ksh shell which builds unmodified for APE (possibly as replacement of the old pdksh port now acting as "sh"). The mksh shell is used in many different contexts, most notably as shell in the more modern versions of Android.