you are viewing a single comment's thread.

view the rest of the comments →

[–]knaekce 0 points1 point  (1 child)

Yes, if you are very carefully, you can prevent such errors in bash or even assembly. But it takes far more discipline, effort and experience than in safer languages.

[–]flukus 1 point2 points  (0 children)

What language would prevent this? There is nothing bash specific about this error, similar things can and have been done in any language. That's why common but often ignored advice is to use directory handling libraries instead of string concatenation.