this post was submitted on 18 Nov 2023
567 points (95.8% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54609 readers
276 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 14 points 1 year ago (12 children)

You should know that in most filesystems that are not NTFS, spaces in file names are not well supported.

[–] [email protected] 3 points 1 year ago (11 children)

Can you give examples? Linux and Mac have no real issues as far as I'm aware. Nor exFAT or FAT32

[–] [email protected] 10 points 1 year ago* (last edited 1 year ago) (10 children)

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.

[–] [email protected] 13 points 1 year ago

That's a problem with the shell though, not the filesystem. It doesn't matter which files filesystem you're using; most interactive shells use spaces as token separators and therefore spaces in filenames need to be enclosed in quotes or escaped.

load more comments (9 replies)
load more comments (9 replies)
load more comments (9 replies)