The real reason was a boring one and seemingly unrelated to that file. I just ran out of disk space. Still though, that’s not exactly a helpful error is it

To be fair, most people who try to copy success fail.

masterofn001
link
fedilink
821d

Lot of && in that message. The success reason may not be related to the copy failure reason but to another part of the commands?

Without seeing the command it isn’t really possible to tell.

@bleistift2@sopuli.xyz
link
fedilink
English
4
edit-2
21d

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 of Success, which is a bullshit error message whithin or without [Edit: a pipe &&].

TimeSquirrel
link
fedilink
821d

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.

masterofn001
link
fedilink
3
edit-2
21d

https://www.man7.org/linux/man-pages/man1/bash.1.html

Lists A list is a sequence of one or more pipelines separated by one of the operators ;, &, &&, or ||, and optionally terminated by one of ;, &, or <newline>.

   Of these list operators, && and || have equal precedence, followed by ; and &, which have equal precedence.

   A sequence of one or more newlines may appear in a list instead of a semicolon to delimit commands.

   ....

   AND and OR lists are sequences of one or more pipelines separated by the && and || control operators, respectively.  AND and OR lists are executed with left associativity.  An AND list has the form

          command1 && command2

   **command2 is executed if, and only if, command1 returns an exit status of zero (success).**

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.

Ah yes, the fabled ‘Task succeded failurely’

Aedis
link
fedilink
721d

Funny tangent. I remember windows HRESULTS containing E_SUCCESS (error success) and something along the lines of S_FAILURE (success failure) I’m a little fuzzy on that second one though, so someone else can correct me if I have the wrong name for it.

@Venator@lemmy.nz
link
fedilink
5
edit-2
19d

Maybe they’re for when you’re trying to cancel a request or kill a task? 😅

Create a post

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.
  • 1 user online
  • 77 users / day
  • 172 users / week
  • 622 users / month
  • 2.3K users / 6 months
  • 1 subscriber
  • 1.66K Posts
  • 36.7K Comments
  • Modlog