3 ms·
Shell still has a huge advantage over other scripting languages- the syntax to invoke other programs is completely first class and natural. In real programming
by woah 10y ago
Shell still has a huge advantage over other scripting languages- the syntax to invoke other programs is completely first class and natural. In real programming languages it's always some .os.exec() or whatever. Is python different?
- fnj 10y agoXonsh (a terrific python-based shell) addresses this with great elegance.
- AndyKelley 10y agosubprocess.check_call and subprocess.check_output are far less error-prone than the first class natural syntax of sh, where you have to remember to quote everything or have hidden bugs, likely even security vulnerabilities. And god forbid your coworker has to try to understand your sh code. Clear syntax is better than pretty syntax.