3 ms·
This is really cool! It's rare to see new implementations of awk these days. Bonus points for running it through the nawk test suite. In my opinion /usr/bin/
by kiwidrew 8y ago
This is really cool! It's rare to see new implementations of awk these days. Bonus points for running it through the nawk test suite.
In my opinion /usr/bin/awk is a thing of beauty. Certainly it's the most usable out of the trifecta of scripting languages that are mandated by POSIX.
(There's /bin/sh, where merely using variables can quickly turn into a quoting nightmare. But the true nightmare material is /usr/bin/sed, which has actually been shown [1] to be a Turing complete language!)
[1] http://www.catonmat.net/ftp/sed/turing.txt http://www.catonmat.net/ftp/sed/turing.txt
- comex 8y agoHmm… you missed ed, which is apparently Turing complete as well, at least arguably [1]. And apparently newer versions of POSIX also mandate m4… [1] https://nixwindows.wordpress.com/2018/03/13/ed1-is-turing-complete/ https://nixwindows.wordpress.com/2018/03/13/ed1-is-turing-co...