Elendil said @netikras same thing, i just called it a list,@netikras idk like
Usually when i write bash scripts, i try them to make them POSIX-compliant
(And as short/simple as possible)
So there really is no such thing as legacy code for me. Ye it looks ugly as sin, but the fact that they "just work" regardless of shell or os is much more important to me
You call it "modern better syntax", i call it "GNU coming up with new ways to break my shit" :P
But, in this specific case, you kinda have a point... Work systems all run the same stuff, it would make sense to standardize on modern bash
Is there a way to refactor? Some tool that suggests how to refactor code to bash 4.x?
I use shellcheck religiously but have not seen it so far,I did not expect to find a wild Bocchi on here XD```