RmDebArc_5@lemmy.ml to linuxmemes@lemmy.world · edit-21 year agoalias 2024='echo "YEAR OF THE DESKTOP"'lemmy.mlimagemessage-square118fedilinkarrow-up1308arrow-down175file-text
arrow-up1233arrow-down1imagealias 2024='echo "YEAR OF THE DESKTOP"'lemmy.mlRmDebArc_5@lemmy.ml to linuxmemes@lemmy.world · edit-21 year agomessage-square118fedilinkfile-text
minus-squaresuperbirra@lemmy.worldlinkfedilinkarrow-up1arrow-down1·1 year agono need to quote echo args :P
minus-squarelseif@sopuli.xyzlinkfedilinkarrow-up2·1 year agowhy 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
minus-squareborf@lemmynsfw.comlinkfedilinkEnglisharrow-up3·1 year agoI 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
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
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