this post was submitted on 12 Mar 2024
754 points (99.1% liked)

Programmer Humor

32495 readers
34 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] 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
[โ€“] Huschke 25 points 8 months ago
[โ€“] [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.

[โ€“] TheRealKuni 5 points 8 months ago