614
submitted 9 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 9 points 9 months ago

you can also use basically anything that's not / in a file name as well, it's pretty based. Meanwhile on windows you have to use SMB mappings if you don't want your directory structure to self immolate, what a good operating system.

[-] [email protected] 8 points 9 months ago

That's a great feature, actually, it saves you from using Windows

[-] [email protected] 1 points 9 months ago

true my mistake, how could i forget this.

[-] [email protected] 4 points 9 months ago

I think you might even be able to get away with /s if you escape them properly in the filename.

[-] [email protected] 4 points 9 months ago* (last edited 9 months ago)

Just tried. It processes the escape first and then finds the path with it. Essentially, making it look into a directory made by the characters before the \/.

The above was when I tried:

echo "asd" > asd\/dsa

But then I tried using Dolphin (GUI File Browser) to make a file and:

❯ ls
 1   2   3   4  'asd\⁄sad.txt'
❯ ls
1  2  3  4  asd⁄sad.txt

In the first one, the backslash is not the escape character, but part of the text.

Turns out Dolphin just replaces the forward slash with U+2044 "Fraction Slash" character, hence, not requiring any escape. I'd call that cheating, but it works well.

[-] [email protected] 2 points 9 months ago* (last edited 9 months ago)

Turns out Dolphin just replaces the forward slash with U+2044 “Fraction Slash” character, hence, not requiring any escape. I’d call that cheating, but it works well.

called it, i knew someone would use illegal characters eventually.

[-] [email protected] 1 points 9 months ago* (last edited 9 months ago)

I would have a problem if a terminal app were to do something like this, but for GUI apps, it is expected for them to make stuff easier.
And I feel like, if you were to use a slash in a file name, it would most probably be either an "or" slash or a fraction slash, so the substitution is fine in my books.

illegal characters

Not sure about calling it that, considering it is a standard UTF-8 character. (0x2044 in UTF-16)

[-] [email protected] 2 points 9 months ago

I would have a problem if a terminal app were to do something like this, but for GUI apps, it is expected for them to make stuff easier. And I feel like, if you were to use a slash in a file name, it would most probably be either an “or” slash or a fraction slash, so the substitution is fine in my books.

it's close enough, i generally consider an "illegal" character a non typable character. Especially these alt characters that are visually hard to distinguish from others such as the forward slash for example, i believe this was the same character used for a handful of somewhat clever phishing scams.

Seems like it's fair enough to me.

[-] [email protected] 3 points 9 months ago* (last edited 9 months ago)

i'm not sure if you're allowed to escape the / character, i feel like it's blatantly illegal. But you could use the funny character set trolling thing instead, where you use a not forward slash instead. (not the \)

[-] [email protected] 3 points 9 months ago

I'm fairly confident MacOS allows it, I've seen people do some Utterly Cursed shit in MacOS, but idk about Linux

[-] [email protected] 2 points 9 months ago

maybe on macos, that might be funny, it's probably fucky over there for some other reason anyway.

Im pretty sure it's just explicitly illegal in linux though.

[-] [email protected] 4 points 9 months ago

I recently renamed a few movie files to something with ':'. That worked fine on Linux, but lead to some issues on windows. With a lot of errors from next cloud for file sync and me not being able to rename them without booting back to Linux. Fun stuff

[-] [email protected] 1 points 9 months ago

if you're using samba file sharing across OS's (like you should) you should use something called catia:mappings in order to solve that problem. It means shit like colon will be mapped to a different character, but there are some sane mappings out there that you can use.

[-] [email protected] 1 points 9 months ago

It wasn't a file share, I have one of my drives mounted in Linux and in Windows as a general storage drive in a dualboot system

[-] [email protected] 1 points 9 months ago

oh, that's rough. Yeah no i would still recommend using samba for that tbh.

this post was submitted on 06 Sep 2024
614 points (90.4% liked)

linuxmemes

25669 readers
847 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS