2 ms·
>grep -R "error" logs Why is error in quotes?
by riddley 2mo ago
>grep -R "error" logs
Why is error in quotes?
- hronecviktor 2mo agoThese are all courtesy of AI of course. Still, I may be a little anal about this but I align with this. I quote everything in bash. In this case I would do single quotes as it's a literal. You never know when someone with lesser bash knowledge will modify your script and put a variable in there. Shell expansions are nothing but footguns everywhere. Proper quoting hygiene and `--` goes a long way
- lucb1e 2mo agoI found it reasonable because there's no need in this specific case but you do often use quotes and this could be a good middle ground of annoyance (line complexity) and getting the character distribution somewhat right ...but then you read the author's response about not having actually made this themselves and your head canon implodes