[Toybox] awk (Re: ps down, top to go)

Roy Tam roytam at gmail.com
Mon May 30 23:58:54 PDT 2016


2016-05-31 14:42 GMT+08:00 Andy Chu <andychup at gmail.com>:
>>> OK, that didn't take long!  Thanks Roy.
>>
>> and the latest minix /bin/sh is here:
>> https://github.com/minix3/minix/tree/R3.1.6/commands/sh
>
> This is interesting... do you know why it doesn't appear on the master
> branch?  (I actually had a copy of those repo on my machine)
>
> It also doesn't appear on the R3.3.0 branch, which according to
> Wikipedia is the latest release of Minix 3.
>

Many of minix /bin stuffs are removed since they decided to use NetBSD
userland in 3.2.
Thorsten Glaser stated "Ninix 3 (Minix 3 with NetBSD® code) has first
been working starting with mksh R40e (clang). More porting and tests
are needed. This is different from “regular” Minix 3." in MirOS Korn
Shell page.

> The website claims that shell scripts are supported through Almquist
> shell: http://wiki.minix3.org/doku.php?id=developersguide:programmingminix#how_about_shell_script_programming
>
> This matches my understanding that Minix3 switched to the NetBSD user
> space awhile ago.  The minix/commands/ash directory coexists with
> minix/commands/sh in this branch.
>
> Of course, none of that means it isn't a distinct code lineage for
> POSIX shell.  But unfortunately I can't build this code -- I get all
> sorts of errors like:
>
> exec cc -O -D_MINIX -D_POSIX_SOURCE    -c -o sh1.o sh1.c
> In file included from sh1.c:6:0:
> sh.h:188:28: error: expected declaration specifiers or ‘...’ before ‘(’ token
>  _PROTOTYPE(char *rexecve , (char *c , char **v , char **envp ));
>
> There are only 4800 lines of code there.  My feeling is that isn't not
> going to pass a lot of my test suite, but obviously reading the source
> won't answer that question.
>
> I guess one thing to do would be to boot up a Minix3 VM -- does it use
> sh or ash as /bin/sh ?
>
> I should be able to test the following implementations:
>
> - bash
> - zsh
> - dash
> - busybox hush (not bothering to test ash, since it's the same lineage as dash)
> - mksh (has Ubuntu package, use this as a standin for the Korn lineage)
> - yash (has Ubuntu package)
>
> I didn't try building Coherent sh ... since it's a source dump from
> 1995, that will probably take some effort.
>
>
> Andy


More information about the Toybox mailing list