logoalt Hacker News

kh_hktoday at 8:50 AM3 repliesview on HN

Well, at least I will be able to run my bash scripts in 5 years


Replies

pzmarzlytoday at 10:02 AM

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_grasstoday at 10:50 AM

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.

show 1 reply
gf000today at 9:00 AM

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.

show 2 replies