6 ms·
There are workloads where shell scripts are the so-called right tool for a job. All too often I see people writing scripts in "proper" languages and calling os.
by bitofhope 4y ago
There are workloads where shell scripts are the so-called right tool for a job. All too often I see people writing scripts in "proper" languages and calling os.system() on every other line. Shell scripts are good for gluing programs together. It's fine to use them for that.
- Spivak 4y agoFor me it's once you make switch to a "proper" language you realize how much lifting pipelines do when it comes to chaining external binaries together.
- sargstuff 4y agoHeaping things together is better than letting things stack up/down.
- eschneider 4y ago1000% THIS. The trick, of course, is knowing when it's time to abandon shell for something more powerful, but that usually comes with experience.
- GoblinSlayer 4y agoI wrote such a program, that runs other programs for heavy lifting but also parses text which you can't possibly do in bash.
- sargstuff 4y agobootloader, systemd, or init ? Parsing text isn't anything fancy. It's just knowing what the marker is for a word/item boundary. For bash, that marker is defined in IFS
- GoblinSlayer 4y agoA build system for single file programs.