this post was submitted on 16 Jul 2024
614 points (97.5% liked)

Programmer Humor

37589 readers
542 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Fennek@feddit.org 5 points 1 year ago* (last edited 1 year ago) (1 children)

I try to just always put files names or paths into quotes in CLI or tie it to a variable in programming. This way it also accepts spaces and knows how to separate it from arguments.

[โ€“] aulin@lemmy.world 4 points 1 year ago

Yeah. It's a good idea to guard against it, but I would still never put spaces in filesnames that I myself choose.