this post was submitted on 09 Nov 2026
700 points (97.4% liked)

Programmer Humor

34287 readers
1630 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 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] a_jeering_serpent@sopuli.xyz 2 points 2 weeks ago (1 children)

Oh i was kind of going for the opposite. 😈

BTW use caution with your glob there, that only does what you described if the folder has contents, if it doesn’t, rather than getting nothing you’ll get back the parent directory, at least in bash. I’m not one of the cool zsh kids.

[–] yetAnotherUser@discuss.tchncs.de 1 points 2 weeks ago (1 children)

Huh, are you sure or am I just stupid?

[user@device Documents]$ mkdir test
[user@device Documents]$ cd test
[user@device test]$ ls ./*
ls: cannot access './*': No such file or directory

Same behavior with * instead of ./*.

[–] a_jeering_serpent@sopuli.xyz 2 points 2 weeks ago

I may be the stupid one, i’m sure there’s a related gotcha here under some condition, but objectively not the one i described. Sorry, did not intend to waste anyone’s time and i do appreciate the response back to set me straight.