980
I_fucking_hate_them_now (media.piefed.world)
top 50 comments
sorted by: hot top controversial new old
[-] lengau@midwest.social 17 points 6 days ago

I very intentionally have all my code in Personal Projects 🥰 and Work Projects 🏦 directories so I can find bugs in the handling of file paths.

[-] callyral@pawb.social 20 points 6 days ago

not sure why the default behavior is this:

file\ name\ with\ a\ bunch\ of\ spaces

instead of this:

"file name with a bunch of spaces"

but you can just press " before pressing tab to auto-complete, and it will use the 2nd form

[-] killeronthecorner@lemmy.world 1 points 6 days ago

Because quoting requires token expansion (e.g. ~ to /home/you). Escaping gives you a much shorter path in that case.

That said I'm with you, full quoted paths read better to me.

[-] bob_lemon@feddit.org 10 points 6 days ago* (last edited 6 days ago)

My work has me working with Matlab Simulink paths, which may (and sometimes actually do) contain newlines.

[-] Korne127@lemmy.world 2 points 4 days ago

Can't relate. I use shell all the time, and I always use spaces in file paths, especially to make sure scripts I make still work then

[-] quantenzitrone@lemmings.world 2 points 5 days ago

i y'all just started using fish shell, you'd have proper shell completions and argument splitting that doesn't care about spaces in file names

[-] kieron115@startrek.website 4 points 6 days ago

at least you/arent/using\ linux

[-] pineapplelover@lemmy.dbzer0.com 6 points 6 days ago
[-] rumba@lemmy.zip 7 points 6 days ago

agreed, "still worth it"

I do, however, tend to keep spaces out of my folder names so i can just use quotes at the end.

/Images/Halloween/Projections/"Creepy Crawlies.mp4"

[-] zerofk@lemmy.zip 4 points 6 days ago* (last edited 6 days ago)

Computers should just know when I want a space to be part of a file name, and when I want them to be argument separators. No more escaping or quoting.

[-] sefra1@lemmy.zip 1 points 5 days ago

The number of keystrokes needed to type an underscore is the same that you need to type backslash space, so I don't see how underscores are in improvement

[-] Jankatarch@lemmy.world 1 points 6 days ago

capital letters.

[-] lemming741@lemmy.world 193 points 1 week ago

Microsoft intentionally made programs install to C:\Program Files on Windows 95+ to force programmers to deal with spaces in filenames.

Someone make one of those "statements made by the utterly deranged" memes about it, please and thank you.

[-] lime@feddit.nu 77 points 1 week ago

what is even more funny about this is that the name of that directory used to be locale-dependent, so in sweden it was just called "Program", completely nullifying that idea.

[-] jjagaimo@sh.itjust.works 58 points 1 week ago

C:\Program Files

C:\Program Files (x86)

C:\ProgramData

[-] some_kind_of_guy@lemmy.world 51 points 1 week ago

C:\PROGRA~1

[-] BanMe@lemmy.world 42 points 1 week ago

The fucking parenthetical x86 absolutely kills me. I don't normally wish dick cancer on people,

load more comments (9 replies)
load more comments (2 replies)
[-] IcedRaktajino@startrek.website 113 points 1 week ago

I've recently learned that in Linux, you can use emois in filenames. I died a ~~little~~ lot inside when I learned that.

[-] FrostyPolicy@suppo.fi 79 points 1 week ago* (last edited 1 week ago)

On Linux file systems you can use any character except NULL, and / is a reserved character.

E.g. on ext-4 "All characters and character sequences permitted, except for NULL ('\0'), '/', and the special file names "." and ".." which are reserved for indicating (respectively) current and parent directories."

[-] xthexder@l.sw0.com 56 points 1 week ago

I once accidentally created a file with a newline character in it... it was pretty tricky to fix from command line.

[-] malware@lemmy.zip 84 points 1 week ago
[-] tdawg@lemmy.world 66 points 1 week ago

Arrest this person

[-] voodooattack@lemmy.world 32 points 1 week ago
load more comments (3 replies)
load more comments (1 replies)
load more comments (7 replies)
load more comments (4 replies)
load more comments (19 replies)
[-] SpaceScotsman@startrek.website 59 points 1 week ago

I\ don\'t\ know\ what\ you\ mean,\ I\'ve\ never\ encountered\ any\ annoyances.

[-] Routhinator@startrek.website 8 points 6 days ago* (last edited 6 days ago)

'I don\'t know what you mean, I\'ve never encountered any annoyances.'

[-] gamma@programming.dev 7 points 6 days ago

Single quotes don't allow any escaping in shell, you need

'I don'\''t know what you mean, I'\''ve never encountered any annoyances'

Or, in Zsh with setopt rcquotes:

'I don''t know what you mean, I''ve never encountered any annoyances'
[-] Routhinator@startrek.website 6 points 6 days ago

Oh right, good catch. That's me shell scripting while in a meeting. 🫠

[-] stefenauris@pawb.social 3 points 6 days ago

Good use of a meeting to be fair

[-] quantenzitrone@lemmings.world 1 points 5 days ago

it works in fish

[-] asdfranger@lemmynsfw.com 41 points 1 week ago* (last edited 1 week ago)
Oh\ come\ on,\ it\'s\ not\ that\ bad

Some shells enclose those types of files within inverted commas. Such that:

> ls
file\ name.md

is instead

> ls
'file name.md'

(I use fish)

load more comments (7 replies)
[-] bleistift2@sopuli.xyz 33 points 1 week ago

Are you typing the whole filename by hand? Tab expansion exists, you know?

load more comments (2 replies)
load more comments
view more: next ›
this post was submitted on 22 Sep 2025
980 points (98.7% liked)

Programmer Humor

26629 readers
2939 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS