by codeflo · 3y ago · 0 comments
Of course it's possible and learnable. But even if you know the tricks, it's tedious, and human error prone. I had a team mate (many years ago) who used to test the local admins at any new workplace by putting files names named "$HOME" and similar in his home directory. He claimed it wasn't that rare for this to crash some backup script.
Yet this isn't inherently hard. In fact it's trivial in literally any "proper" programming language, no matter which one you end up picking. I get why shell is "scripting of last resort", I regularly write shell scripts myself. I don't get why people would choose it over anything else where choices are available.
If you do this, the fallout is on you. Does he also make files called `~`?
I think the point was he was trying to find those shitty bash scripts - and ideally get them changed into something more robust (essentially anything else).