README.md (1718B)
1 rifle 2 ===== 3 4 Coreutils in one C file. No GNU in it, no libc under it: it's built on c.h, the one-file libc from 5 Chamesle Source (this copy has grown a bit, directories and users and the like). 6 7 cat, ls, cp and the rest are links to the one program, and it runs whichever name it was called by. 8 You type `cat`, not `rifle cat`. 9 10 ./build.sh builds rifle with clang and lld, makes the links in bin/ 11 rifle --install /bin links in /bin (or anywhere) 12 rifle --list what's in here 13 tests/run.sh runs every case in tests/cases under GNU coreutils and under rifle, and compares 14 what they print and how they exit 15 16 It sorts and compares by bytes, always. No locales. 17 18 grep has its own regex matcher (BRE and ERE, backtracking, longest match from the leftmost start). The grep, sed, find 19 and xargs cases are compared against GNU grep 3.12, sed 4.10 and findutils 4.11, the rest against GNU coreutils. 20 21 What's in so far 22 ---------------- 23 24 [ arch base32 base64 basename cat chgrp chmod chown chroot cksum comm cp cut date dd df dirname du echo egrep env 25 expand expr factor false fgrep find fold grep groups head hostid hostname id install join link ln logname ls md5sum mkdir 26 mkfifo mknod mktemp mv nice nl nohup nproc od paste printenv printf pwd readlink realpath rm rmdir sed seq 27 sha1sum sha224sum sha256sum sha384sum sha512sum shuf sleep sort split stat sum sync tac tail tee test 28 timeout touch tr true truncate tsort tty uname unexpand uniq unlink wc whoami yes 29 30 Not here yet: stty, who and friends, fmt, pr, csplit, numfmt, shred, stdbuf, ptx, pathchk, dircolors. 31 factor stops at 64 bits. 32 33 attic/ has the first version, 29 tools in assembly.