this post was submitted on 12 Mar 2024
757 points (98.8% liked)

Programmer Humor

32483 readers
313 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

source

img title="I don't know what's worse--the fact that after 15 years of using tar I still can't keep the flags straight, or that after 15 years of technological advancement I'm still mucking with tar flags that were 15 years old when I started."

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 30 points 8 months ago (5 children)

tar

Done. That's a valid command, no error code, nothing. KISS!

[–] [email protected] 52 points 8 months ago (4 children)

false

tar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options
Try 'tar --help' or 'tar --usage' for more information.
zsh: exit 2     tar
[–] [email protected] 7 points 8 months ago

OK now I have to escape to really smart assery and assume that's what I meant the whole time ;)

Edit code 2 describes something that went wrong - but that something telling you that it went wrong was the tar binary which therefor most have been valid to evaluate that!

Under no circumstances did I assume that the hint towards help itself would've been an exit code 0, no sir!

To be honest: if I'd designed that bomb it would've exploded in my face for trying to be too clever.

load more comments (3 replies)
load more comments (3 replies)