|
|
|
|
|
by CuriouslyC
817 days ago
|
|
No! General purpose scripts should almost always be written in bash. It's basically the best language for doing simple things with files, it's universally available and it makes almost no assumptions about the environment in which it executes. Have windows users use WSL (the VSCode integration is great!), and mac users should install GNU tools since the system tools are obnoxiously incompatible. The only time I've found that scripts should be in another language is: 1. You need to call libs that to do something fancy and it would be too troublesome to make a small Unix style executable to do the thing.
2. The developers on your team lack Unix/bash experience, and you don't trust them to learn in a timely manner (sad). |
|
At that point you might as well target Python 3.6. Seems like the same hassle for the developer to install and you don't have to worry about wonky differences for users who haven't installed GNU tools, but still think they can run your script because it says `.sh`