3 ms·
1000 lines of shell is about 900 lines too many for "simple".
by arghwhat 6y ago
1000 lines of shell is about 900 lines too many for "simple".
- js4 6y agoThis
- jedahan 6y agoCompared to any other package manager source I've dug into, I haven't found simpler.
- arghwhat 6y agoIf you're comparing line counts remember that this one is vastly incomplete in comparison.
- norswap 6y agoAs opposed to? This just sounds like dumb shell hate. I personally would have used another language, but shell ain't that hard if you have some experience with it, and are using shellcheck as the author does. The config formats of the distro are optimized for command line tools, and writing the package manager in shell seems like a good way to ensure that this is indeed the case - basic dogfooding.
- arghwhat 6y agoAs opposed to programming languages with constructs that allow proper code hygiene. That implies an actual type system, a usable standard library, etc. Shell is great for scripting usage of other programs, far better than other programming languages. That's what it's made for, after all. It's the only thing it's made for.