234
submitted 10 months ago* (last edited 10 months ago) by RmDebArc_5@lemmy.ml to c/linuxmemes@lemmy.world

Edit: Enough money as in buying a PC supporting windows 11

you are viewing a single comment's thread
view the rest of the comments
[-] superbirra@lemmy.world 0 points 10 months ago

no need to quote echo args :P

[-] lseif@sopuli.xyz 4 points 10 months ago
[-] superbirra@lemmy.world -1 points 10 months ago
[-] lseif@sopuli.xyz 2 points 10 months ago

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

[-] superbirra@lemmy.world 1 points 10 months ago

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

[-] borf@lemmynsfw.com 3 points 10 months ago

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

this post was submitted on 21 Nov 2023
234 points (80.5% liked)

linuxmemes

20842 readers
2151 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS