GNU bug report logs - #50204
"Success" seen in failed copy message

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 25 Aug 2021 19:28:01 UTC

Severity: minor

Tags: notabug

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50204 in the body.
You can then email your comments to 50204 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Wed, 25 Aug 2021 19:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 25 Aug 2021 19:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: "Success" seen in failed copy message
Date: Thu, 26 Aug 2021 03:25:49 +0800
I did
$ ln -s ~/mapping/aiyongxian/aiyongxian.kml /tmp/

Then in emacs I did
 C			 ;; dired-do-copy
Overwrite ‘/tmp/aiyongxian.kml’? [Type yn!q or C-h] y
Copy: ‘/home/jidanni/mapping/aiyongxian/aiyongxian.kml’ to ‘/tmp/aiyongxian.kml’ failed:
(file-error Input and output files are the same Success /home/jidanni/mapping/aiyongxian/aiyongxian.kml /tmp/aiyongxian.kml)

OK, but why the word "Success"?!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Thu, 26 Aug 2021 06:21:02 GMT) Full text and rfc822 format available.

Message #8 received at 50204 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 50204 <at> debbugs.gnu.org
Subject: Re: bug#50204: "Success" seen in failed copy message
Date: Thu, 26 Aug 2021 09:19:51 +0300
> From: 積丹尼 Dan Jacobson
>  <jidanni <at> jidanni.org>
> Date: Thu, 26 Aug 2021 03:25:49 +0800
> 
> I did
> $ ln -s ~/mapping/aiyongxian/aiyongxian.kml /tmp/
> 
> Then in emacs I did
>  C			 ;; dired-do-copy
> Overwrite ‘/tmp/aiyongxian.kml’? [Type yn!q or C-h] y
> Copy: ‘/home/jidanni/mapping/aiyongxian/aiyongxian.kml’ to ‘/tmp/aiyongxian.kml’ failed:
> (file-error Input and output files are the same Success /home/jidanni/mapping/aiyongxian/aiyongxian.kml /tmp/aiyongxian.kml)
> 
> OK, but why the word "Success"?!

Because that's not really a "failure": the file was already there.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Thu, 26 Aug 2021 16:54:02 GMT) Full text and rfc822 format available.

Message #11 received at 50204 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50204 <at> debbugs.gnu.org
Subject: Re: bug#50204: "Success" seen in failed copy message
Date: Fri, 27 Aug 2021 00:53:04 +0800
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
>> I did
>> $ ln -s ~/mapping/aiyongxian/aiyongxian.kml /tmp/
>> 
>> Then in emacs I did
>> C			 ;; dired-do-copy
>> Overwrite ‘/tmp/aiyongxian.kml’? [Type yn!q or C-h] y
>> Copy: ‘/home/jidanni/mapping/aiyongxian/aiyongxian.kml’ to ‘/tmp/aiyongxian.kml’ failed:
>> (file-error Input and output files are the same Success /home/jidanni/mapping/aiyongxian/aiyongxian.kml /tmp/aiyongxian.kml)
>> 
>> OK, but why the word "Success"?!

EZ> Because that's not really a "failure": the file was already there.

OK, but, the shell says 1, not 0:

$ ln -s ~/mln -s ~/mapping/aiyongxian/aiyongxian.kml /tmp/
$ cp ~/mapping/aiyongxian/aiyongxian.kml /tmp/; echo $?
cp: '/home/jidanni/mapping/aiyongxian/aiyongxian.kml' and '/tmp/aiyongxian.kml' are the same file
1

Also
>> (file-error Input and output files are the same Success /home/jidanni/mapping/aiyongxian/aiyongxian.kml /tmp/aiyongxian.kml)
should be
>> (file-error Input and output files are the same. Success. /home/jidanni/mapping/aiyongxian/aiyongxian.kml /tmp/aiyongxian.kml)
But that doesn't make sense either.
Obviously the word Success has been stuck in the middle, and should be
moved to the front or back. And in fact changed to Failure.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Thu, 26 Aug 2021 17:04:01 GMT) Full text and rfc822 format available.

Message #14 received at 50204 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 50204 <at> debbugs.gnu.org
Subject: Re: bug#50204: "Success" seen in failed copy message
Date: Thu, 26 Aug 2021 20:03:09 +0300
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 50204 <at> debbugs.gnu.org
> Date: Fri, 27 Aug 2021 00:53:04 +0800
> 
> >> OK, but why the word "Success"?!
> 
> EZ> Because that's not really a "failure": the file was already there.
> 
> OK, but, the shell says 1, not 0:

So does Emacs: that's why you get the error message.  The "Success"
part comes from the value of errno.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Thu, 26 Aug 2021 17:30:02 GMT) Full text and rfc822 format available.

Message #17 received at 50204 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50204 <at> debbugs.gnu.org
Subject: Re: bug#50204: "Success" seen in failed copy message
Date: Fri, 27 Aug 2021 01:28:32 +0800
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
EZ> So does Emacs: that's why you get the error message.  The "Success"
EZ> part comes from the value of errno.

I see. Success means failure.
Or maybe failure means success.
OK. Got it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Thu, 26 Aug 2021 17:33:02 GMT) Full text and rfc822 format available.

Message #20 received at 50204 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 50204 <at> debbugs.gnu.org
Subject: Re: bug#50204: "Success" seen in failed copy message
Date: Thu, 26 Aug 2021 20:31:57 +0300
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 50204 <at> debbugs.gnu.org
> Date: Fri, 27 Aug 2021 01:28:32 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
> EZ> So does Emacs: that's why you get the error message.  The "Success"
> EZ> part comes from the value of errno.
> 
> I see. Success means failure.
> Or maybe failure means success.

Also "failure is not an option".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Tue, 21 Sep 2021 15:47:02 GMT) Full text and rfc822 format available.

Message #23 received at 50204 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 50204 <at> debbugs.gnu.org
Subject: Re: bug#50204: "Success" seen in failed copy message
Date: Tue, 21 Sep 2021 08:46:11 -0700
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

>>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
> EZ> So does Emacs: that's why you get the error message.  The "Success"
> EZ> part comes from the value of errno.
>
> I see. Success means failure.
> Or maybe failure means success.
> OK. Got it.

I think we should thank POSIX for any confusion that can come from this.

So should this be closed as notabug?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Tue, 21 Sep 2021 16:02:02 GMT) Full text and rfc822 format available.

Message #26 received at 50204 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50204 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#50204: "Success" seen in failed copy message
Date: Tue, 21 Sep 2021 19:01:42 +0300
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Tue, 21 Sep 2021 08:46:11 -0700
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 50204 <at> debbugs.gnu.org
> 
> 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:
> 
> >>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
> > EZ> So does Emacs: that's why you get the error message.  The "Success"
> > EZ> part comes from the value of errno.
> >
> > I see. Success means failure.
> > Or maybe failure means success.
> > OK. Got it.
> 
> I think we should thank POSIX for any confusion that can come from this.
> 
> So should this be closed as notabug?

Yes, I think so.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50204; Package emacs. (Tue, 21 Sep 2021 16:41:01 GMT) Full text and rfc822 format available.

Message #29 received at 50204 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50204 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#50204: "Success" seen in failed copy message
Date: Tue, 21 Sep 2021 09:40:41 -0700
tags 50204 notabug
close 50204
thanks

Eli Zaretskii <eliz <at> gnu.org> writes:

>> So should this be closed as notabug?
>
> Yes, I think so.

I'm therefore closing this bug report.




Added tag(s) notabug. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 21 Sep 2021 16:41:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 50204 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 21 Sep 2021 16:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 20 Oct 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.