dos/windows batch files are so much fun.
what does this output?
SET FOO = BAR
ECHO %FOO%
The reason? The space before the equals.
SET FOO = BAR actually sets the environment variable "FOO " to " BAR"
yeah sure environment variables can have spaces in them, that's not a mistake that is just going to cause problems
@foone oh my god so many things make sense now and I hate it so much
@foone oh i hate that aspect so much, it's caused me so much bad blood
@foone cursed fact: there is exactly one character forbidden in macOS file names and its the forward slash. Everything else is allowed. Yes that includes \0
@foone @cinebox @charlotte Okay so I looked this insanity up and apparently Linux maps ␀ (that's U+2400), UTF-8 encoded in the POSIX APIs of course, to a literal U+0000 in the (UTF-16) HFS+ directory and vice versa (this, of course, means you conversely can't create a filename with an actual U+2400 from Linux). I dont know what macOS does.
Also HFS+ forbids :, not /. However, the POSIX layer swaps those two characters in macOS and Linux does the same.
Whatever is going on with the HFS+ insanity, I'm pretty sure APFS won't allow NUL.
@foone @cinebox @charlotte I actually thought it might be that too, and for all I know that might be what macos does or did at some point? No idea tbh.