3 ms·
One difference between the projects is that you are targeting Bash and I am targeting POSIX. Therefore, using the 'unofficial strict mode' is not an option for
by arendtio 5y ago
One difference between the projects is that you are targeting Bash and I am targeting POSIX. Therefore, using the 'unofficial strict mode' is not an option for me. However, good tests can compensate a lot and are necessary anyway.
Yes, there are certainly some modules which lack comments. On the other hand, there is at least one module which has its own readme to explain the code:
https://github.com/arendtio/mdl.sh/tree/master/development/debug https://github.com/arendtio/mdl.sh/tree/master/development/d...
Regarding the security: As said, I am targeting POSIX and as far as I know, the only checksum tool available is cksum. This is borderline insecure but catches transmission errors at least. However, if you do not have such strict requirements you can easily use something like sha256sum. In fact, my module allows to use alternative checksum tools but uses cksum if nothing else is specified (because it is better than nothing and always available).