4 ms·
It's kindof a dumb answer, but `abcde` (A Better CD Encoder) continues to be my go-to reference for "everything shell". https://git.einval.com/cgi-bin/gitweb.c
by ramses0 2y ago
It's kindof a dumb answer, but `abcde` (A Better CD Encoder) continues to be my go-to reference for "everything shell".
https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=summary https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=summ...
https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=blob_plain;f=abcde;hb=8726dfe84907e162e4b10a23cec0832ff544c1a1 https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=blob...
...it's just so damned... like... it _is_ 5000 lines of bash, but given the constraints and the problem domain, it's an incredible (and well-organized) feat.
If I ever question "How would I do something like XXX in shell?", I can usually find some clues, inspirations, or answers in the `abcde` codebase.
- e12e 2y ago> https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=blob_plain;f=abcde;hb=8726dfe84907e162e4b10a23cec0832ff544c1a1 https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=blob... Interesting. I was a bit surprised by the use of echo in the usage() function (and not cat and a heredoc) -- but that certainly looks like a very structured shell script. Thanks for sharing.