• 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: July 21st, 2023

help-circle




  • Most body armor is good for 1 strike. Kevlar thread break, ceramic breaks, and you really don’t want to use dented armor, best case it’s a weak point, worst case is pushing in your chest cavity preventing you from breathing. Any body armor that is remotely mobile is effectively one time use. Now admitted (normally) used body armor can still provide some protection and can be better than nothing (except in situations where the damage impacts you, ie the plate metal being dented and pushing into your chest). And some can be repaired or replaced with the right materials and tools, but those are heavy, and take space




  • for f in *.txt; do cat $f; done

    Will error for example. It works fine for filenames without space, but if the filename has space in it, it will be interpreted wrong. But if your testing batch doesn’t have spaces in the filename, you won’t see the issue until it’s used on a file that does. Note ‘cat’ is a placeholder, any function/script that can be used on a file here will have the same issue.

    Something similar to that caught me last week while I was unzipping multiple mods in bulk for a game.


  • The problem is really that space is an argument separator, so to safely handle filenames with spaces you need to handle them special, either by escaping them, quoting the entire thing. This means that the filename with spaces can’t be just copy pasted wherever you want, you have handle them special. It adds complications that are resolved by just using a separator that isnt used for other things, like underscore, or dash. Dot I also don’t like as much as it’s used as a separator for extensions, but that’s a far easier problem to handle by just ignoring all but the last dot, leaving only one really bad edge case (a file that does not have an extension, that uses dot separator in its filename having the filesystem imply a wrong extension.