minoca / os

Minoca operating system
Other
2.71k stars 232 forks source link

Add awk to the default Minoca build #136

Open Tyil opened 6 years ago

Tyil commented 6 years ago

I've been contributing some patches to Sparrowdo. One of these changed their bootstrapping script to be POSIX compliant. This makes supporting Alpine easier, but it has come to my attention that it breaks the script on Minoca.

It seems that Minoca doesn't come with awk on a default installation. As such my request would be to have awk added, in order to improve POSIX compliance.

evangreen commented 6 years ago

Hi Tyil, I agree, it would be great to have awk in the default OS.

One of the goals we had with Minoca OS is to have a complete minimal OS in one repository. To that end, we created the "swiss" app, which contained the basic commands for a functional system (sh, cp, mkdir, init, etc). I had originally intended to add awk to swiss, but stopped short mostly because awk looked a little complicated.

If somebody were to volunteer to write awk from scratch and submit it to swiss, I would gladly provide support and reviews. I'm currently a bit short on time to write awk myself.

Alternatively, Sparrow already has some extra dependencies for installation. Perl is obviously one. Perhaps in whatever installation instructions for Sparrow that say "install Perl", we could also say "install awk, too", since awk is in our list of supported third-party packages.

roytam1 commented 3 years ago

For a reference, busybox's awk has 2888 lines while it uses libc's regex engine.