3 ms·
You're skipping the most needed improvement of all: fixing the issue where scripts with unquoted variables will seem to work until they contain a space. Almost
by AgentME 3y ago
You're skipping the most needed improvement of all: fixing the issue where scripts with unquoted variables will seem to work until they contain a space. Almost every single bash script of more than a dozen lines I've seen outside of large open-source projects fails if a user puts a space in a file path, because the programmer didn't understand the insanity of variable quoting rules! I don't know of any programming language with a more common major footgun.
- HKH2 3y agoShellcheck does cover that. I think the bigger problem is people programming without warnings (in any language). edit: Although I can see that if they hadn't made string splitting the default, it would have saved a lot of headaches.