this post was submitted on 15 Jan 2025
120 points (98.4% liked)
Programmer Humor
32900 readers
1678 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What does it matter what came before or after the offending command? Clearly,
/usr/bin/ar
says it’s unable to copy a file because ofSuccess
, which is a bullshit error message whithin or without [Edit: ~~a pipe~~&&
].In C/C++, it's very common for a function to return an integer corresponding to any errors that occured within the function, including a "success" error code, because it has to return something, otherwise it's undefined.
I'm not sure that's what happened here but that's why "successful" errors are a thing. Somewhere it got misinterpreted maybe.
https://www.man7.org/linux/man-pages/man1/bash.1.html
So, command 1 returns success, but command 2 fails. The FAILED comment at the beginning of the error message is the message to parse, one part succeeded, the other failed.
Not using && and running your command by line will show where the error is.