| ▲ | kh_hk 7 hours ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Well, at least I will be able to run my bash scripts in 5 years | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | g947o 3 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I don't know Ruby, but chances are that your Python/JavaScript scripts are going to run in 5 years as well, if you stick to standard library. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | norir 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I consider luajit a much better choice than bash if both maintainability and longterm stability are valued. It compiles from source in about 5 seconds on a seven year old laptop and only uses c99, which I expect to last basically indefinitely. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | pzmarzly 6 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fair. My bash scripts only broke 3 times over the years: - when ls started quoting filenames with spaces (add -N) - when perl stopped being installed by default in CentOS and AlmaLinux (had to add dnf install -y perl) - when egrep alias disappeared (use grep -E) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | greener_grass 5 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bash is not a great cross-platform choice. Too many subtle differences. The best way is a scripting language with locked-down dependency spec inside the script. Weirdly .NET is leading the way here. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | gf000 7 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
For some quality of "run", because I'm hella sure that it has quite a few serious bugs no matter what, starting from escapes or just a folder being empty/having files unlike when it was written, causing it to break in a completely unintelligible way. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||