6 ms·
if it needs to be safe, use python. please don't down vote me
by jonnycomputer 8y ago
if it needs to be safe, use python.
please don't down vote me
- tootie 8y agoSafe bash is what Perl was invented for. Don't downvote me.
- jonnycomputer 8y agosomeday i might even add it to my toolkit
- tannhaeuser 8y agoI think Python is made for other tasks than shell. Shell programs mainly consist of invocations for external command-line utilities that you can develop and generalize from interactive shell sessions and one-off automation scripts. Python OTOH is a general-purpose programming language.
- jonnycomputer 8y agoYes, Python is a general purpose language; however it has powerful libraries to safely interact with command line utilities. The main drawback is their verbosity. But you get a lot in the exchange. For small scripts of a few hundred lines, bash (or some equivalent) is the way to go. But anything more than that, you need something like python or perl (in my opinion, of course)