why not? it is clearer to read, and being more explicit when writing scripts can be safer, maybe not in this case, but if you echoed a variable without quotes, it could possibly expand as a glob
maybe not in this case, but we’re talking about this case. Quoting is needed when it’s needed, otherwise, well, is not needed. Rest assured zealotries tend to disappear the more time you’re exposed to this stuff ;) but in the meanwhile prepare yourself for some PR rejections should you ever work with me hahaha cheers
no need to quote echo args :P
its good practice
no? :)
why not? it is clearer to read, and being more explicit when writing scripts can be safer, maybe not in this case, but if you echoed a variable without quotes, it could possibly expand as a glob
maybe not in this case, but we’re talking about this case. Quoting is needed when it’s needed, otherwise, well, is not needed. Rest assured zealotries tend to disappear the more time you’re exposed to this stuff ;) but in the meanwhile prepare yourself for some PR rejections should you ever work with me hahaha cheers
I mean it’s good practice generally just in case, even when it’s not needed it makes it more maintainable
I usually go with YAGNI but shell quoting can get to be a pain so I try to do it right in scripts or aliases
But for a single one-off invocation lol definitely not quoting echo args