4 ms·
I don't place newlines in my filenames, but I also prefer my shell scripts to be portable. Learning and understanding the bash oddities is key for me because I
by arwineap 2y ago
I don't place newlines in my filenames, but I also prefer my shell scripts to be portable.
Learning and understanding the bash oddities is key for me because I use it so often. It's the same reason I quote every expansion; sure my text likely doesn't have spaces, but maybe it does and id rather use the extra quote characters to ensure I don't have to troubleshoot language grammar bugs in my code
- frou_dh 2y agoI stopped having to proactively learn most gotchas by just having the spectacularly useful shellcheck linter automatically run on save.