I'm just about okay with emoji in filenames but I draw the line at animated gifs and ringtones!
https://23.social/@leyrer/114648865072884127
leyrer (@leyrer@23.social)

Attached: 1 image

23
@cstross Seen enough modern scripting code that I'm still scared of spaces in file names
@etchedpixels Coming next: a filesystem that lets you embed Javascript in filenames and executes them when you call fopen() on the file
@cstross Disturbingly that's a fairly small FUSE driver. Please don't give them ideas.

@cstross

Are you... OK?

Do you need someone to talk to?

Should @etchedpixels and myself organize a rescue operation? An intervention? ๐Ÿ˜‰

@cstross @etchedpixels There's a convention with btrfs to use an @ prefix on subvolume names. Some people use ๐Ÿ„ or ๐Ÿฎ as the prefix instead, because it's a CoW filesystem...
@darkling @cstross I'm all for unicode. I even made sure my C compiler allows unicode symbol names but unicode is actually safer than a lot of stuff like $ and ' ' because no mainstream shell or interpreter has used unicode for meta characters.

@cstross @etchedpixels You might also remember this from 25 years ago:

a filesystem that evaluates Perl expressions

with an example like:

$ cd 'map { my $x = 2**$_; sprintf "%2d %s", $_, $x } 0..20'
$ ls
0 1 4 16 8 256 12 4096 16 65536 20 1048576
1 2 5 32 9 512 13 8192 17 131072
2 4 6 64 10 1024 14 16384 18 262144
3 8 7 128 11 2048 15 32768 19 524288

(Not written by me! I'm copying from an email)

@Uilebheist @cstross @etchedpixels "This ... will execute the command embedded in that filename" - https://security.metacpan.org/2025/06/06/two-arg-open.html (hat-tip to @rrwo)
Are you still using the 2-argument open?

The 2-argument open function is insecure

security.metacpan.org

@cstross How about emoji in passwords?

https://eternallybored.org/imgs/compstuff/emojipassword1.png

(linking to image, because upload fails for some reason; alt text: Windows 10 password change screen, with confirmation password being revealed to be test๐Ÿ‘๐Ÿคฆ)

@cstross I tried ๐Ÿ™‚.exe and it works fine. Renders properly in process explorer and everything. A bit of a ๐Ÿคฏ moment, but less scary than spaces.
@cstross I have an executable file called "rm -rf"
@Flux @cstross (with horrified awe) You monster!
@neia @cstross @Flux Exactly my reaction! Knowing there are people like that walking around out there is going to make it difficult to go to sleep tonight ๐Ÿ˜ฑ
@Flux @cstross you don't have another file called `--no-preserve-root`? Chicken.
install script does rm -rf /usr for ubuntu ยท Issue #123 ยท MrMEEE/bumblebee-Old-and-abbandoned

An extra space at line 351: rm -rf /usr /lib/nvidia-current/xorg/xorg causes the install.sh script to do an rm -rf on the /usr directory for people installing in ubuntu. Totally uncool dude!!! The ...

GitHub

@Flux @cstross

It's a great idea!

When you run it it pops a prompt asking you to type out in full; I AM OF SOUND MIND AND BODY AND IT IS MY INTENTION TO DELETE THE TREE.

@Flux @cstross I have a README file with the contents โ€œREADME: No such file or directoryโ€.
@cstross I thought Emojis are for passwords, but again something learned.

@cstross

Echo "suuuuprise!" > "; rm -rf \~"

@cstross @leyrer I use emoji in my terminal for quick file/folder recognition
@cstross Now I just had the thought of the Crazy Frog ringtone in a filename or URL... *shudder*
@cstross Recently I found "โค๏ธ", actually more than one per item, in customer's Product Master Data.

@cstross @leyrer Ringtones in filenames? I was so preoccupied with whether or not I could, I didn't stop to think if I should.

๐Ÿ”Š Sound on!

P.S: The delay added by ansi music would also allow animated gifs. With sound!

#SorryNotSorry #ANSI

@ge0rg @cstross @leyrer I have a suddenly and overwhelming urge to use this to rickroll someone
@awoodland @ge0rg @cstross @leyrer yes! I somehow expected to hear never gonna give you up right after the ls command
@ge0rg you are a monster.
@ge0rg @cstross @leyrer teach me please ๐Ÿ™

@dlx the file names contain regular ANSI sequences. To trick `ls` into showing them, you need two things:

export QUOTING_STYLE=literal
alias ls='ls --show-control-chars'

The emoji filename is a 7x7 pixel art spread over 7 lines, using spaces and `Esc[41m` sequences, with the files created in order, with a small delay (therefore `ls -tr`).

The ringtone is the obscure ANSI music extension http://artscene.textfiles.com/ansimusic/ "rendered" with SyncTERM 1.4

T E X T F I L E S

@ge0rg @cstross @leyrer I wonder what the trusty detox tool would do with those ๐Ÿค”
@Garonenur sorry, I don't know anything about detox.

@ge0rg
https://linux.die.net/man/1/detox

I use this if I get files from windows users or with filenames generated by programs without manners.

It removes spaces and changes everything to standard ASCII.

detox(1): clean up filenames - Linux man page

The detox utility renames files to make them easier to work with. It removes spaces and other such annoyances. It'll also translate or cleanup Latin-1 (ISO ...

@Garonenur TIL. It removes the Esc control codes, but leaves the payloads of the Esc sequences:

@ge0rg @cstross @leyrer

finally
scientist-looking-at-green-liquid.jpg
Rick-roll in the terminal!

@ge0rg @cstross @leyrer you got thiiiis close!
Should have used GrandValse. ๐Ÿ˜

@tbr
Well, I didn't want to write my own music sheet, so I used one from http://artscene.textfiles.com/ansimusic/songs/

A nice flashback into monophonous ring tones anyway. Reminds me of when I IrDA-sent a MIDI to my Siemens S25, and the first track was only background that made the phone sound like an electric shaver.

T E X T F I L E S