From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 16 Aug 2013 09:26:08 +0200 From: Jens Staal To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20130816092608.0185245c@Krypton> In-Reply-To: <20130726085930.6909f7e9@Krypton> References: <20130726085930.6909f7e9@Krypton> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [9fans] MirOS ksh (mksh) building out-of-the box on Plan9/APE Topicbox-Message-UUID: 7149aba4-ead8-11e9-9d60-3106f5b1d025 On Fri, 26 Jul 2013 08:59:30 +0200 Jens Staal wrote: > Dear all, > > From 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="-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. The R48 of mksh is now released, so from now on one should basically be able to download the latest tarball at any given time from https://www.mirbsd.org/MirOS/dist/mir/mksh/ and build it on Plan9 by ape/psh ./Build.sh and until the SIGCHLD thing gets resolved, just build with CFLAGS="-DMKSH_NOPROSPECTOFWORK" ./Build.sh