630
submitted 9 months ago by qaz@lemmy.world to c/memes@lemmy.ml
  • ISO 8601 is paywalled
  • RFC allows a space instead of a T (e.g. 2020-12-09 16:09:...) which is nicer to read.
you are viewing a single comment's thread
view the rest of the comments
[-] lolcatnip@reddthat.com 2 points 9 months ago

But $(date) does return a string with spaces, at least on every system I've ever used. And what's so bad about the possibility of spaces in filenames? They're slightly inconvenient in a command line, but I haven't used a commuter this century that didn't support spaces in filenames.

[-] rtxn@lemmy.world 4 points 9 months ago

Bro, literally re-read the comment you replied to. It has an example of what might happen.

[-] lolcatnip@reddthat.com 1 points 9 months ago* (last edited 9 months ago)

Ok, I just reread it. I don't see what you think I'm missing. You mean an improperly written find command misbehaving? The fact that a different date format could prevent a bug from manifesting doesn't seem like much of an argument.

[-] black0ut@pawb.social 2 points 9 months ago

Spaces can exist in filenames. The only problem is that they have to be escaped. As the comment that you reread explained, cat hello world.txt would print the files hello and world.txt. If you wanted to print the file "hello world.txt" you'd either need to quote it (cat "hello world.txt") or escape the space (cat hello\ world.txt)

[-] lolcatnip@reddthat.com 2 points 9 months ago

Oh, the horror!

this post was submitted on 12 Dec 2023
630 points (95.1% liked)

Memes

45196 readers
2228 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS