3 ms·
Python basically acts like a subshell with its own language... I don't see why anyone would think unix shell scripts are really that different from Python scrip
by Retra 8y ago
Python basically acts like a subshell with its own language... I don't see why anyone would think unix shell scripts are really that different from Python scripts, especially if you're not doing the subprocess control things that command shells are optimal for. Invoking python to do something doesn't seem any more awkward to me than invoking sed, awk, etc..
- ekianjo 8y agoPython has no bindings to the underlying OS (unless you import os modules, and even then it has its own way of working), and does not interact directly with environment variables either, and as such can not be seriously considered like a "shell" tool at the same level as the other ones. It just was never designed to act in this way. And in the embedded world you don't want to install a python interpreter if you can do without.
- Retra 8y agoIf you're just sorting numbers, you don't need the OS or environment variables.