This is a simple rewrite of coreutils in D, work in progress. Most of the behaviors, at this stage, will be more similar to the FreeBSD coreutils than GNU Coreutils, so as to adhere more closely to the minimum set of functionality defined by POSIX. Once that is implemented, we can look at making thingns diverge from both to be more usable or more ergonomic.
My personal challenge for myself is to implement this mostly from manpages of Linux and FreeBSD, including library manpages. Obviously it depends on some stdc library interfaces and options. Hopefully it’ll be portable to other Unix-likes (I am developing in Linux).
- uname (this doesn’t match Linux, but matches FreeBSD’s implementation)
- true / false (i called it “return” and it will work if you name it true, or false).
- cut (extends functionality in useful ways that are substantially better than gnu version).
- cksum (doesn’t work - algorithm isn’t standard and implementation isn’t correct).
- Generic core.sys.posix style wrappers for stdc that aren’t already in there that we use.
- Generic command boilerplate for --help, --verbose, --version on all commands. Also provide a way to specify filename(s) as part of the command line spec.
- Generic IO / logging / error boilerplate
- ls / vdir / dir
- md5sum / shasum / etc.
- base64 / base32
- … and anything else, see also: https://en.wikipedia.org/wiki/List_of_Unix_commands
- deesh the D language shell. It should have its own simple shell scripting language maybe based on D syntax (or like something) but with pipes and whatnot.
- a fully chrootable environment written in D.
- init? inetd? full userland?! kernel!!!???