unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50204: "Success" seen in failed copy message
@ 2021-08-25 19:25 積丹尼 Dan Jacobson
  2021-08-26  6:19 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-08-25 19:25 UTC (permalink / raw)
  To: 50204

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"?!





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#50204: "Success" seen in failed copy message
  2021-08-25 19:25 bug#50204: "Success" seen in failed copy message 積丹尼 Dan Jacobson
@ 2021-08-26  6:19 ` Eli Zaretskii
  2021-08-26 16:53   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2021-08-26  6:19 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 50204

> From: 積丹尼 Dan Jacobson
>  <jidanni@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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#50204: "Success" seen in failed copy message
  2021-08-26  6:19 ` Eli Zaretskii
@ 2021-08-26 16:53   ` 積丹尼 Dan Jacobson
  2021-08-26 17:03     ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-08-26 16:53 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 50204

>>>>> "EZ" == Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#50204: "Success" seen in failed copy message
  2021-08-26 16:53   ` 積丹尼 Dan Jacobson
@ 2021-08-26 17:03     ` Eli Zaretskii
  2021-08-26 17:28       ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2021-08-26 17:03 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 50204

> From: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
> Cc: 50204@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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#50204: "Success" seen in failed copy message
  2021-08-26 17:03     ` Eli Zaretskii
@ 2021-08-26 17:28       ` 積丹尼 Dan Jacobson
  2021-08-26 17:31         ` Eli Zaretskii
  2021-09-21 15:46         ` Stefan Kangas
  0 siblings, 2 replies; 9+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-08-26 17:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 50204

>>>>> "EZ" == Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#50204: "Success" seen in failed copy message
  2021-08-26 17:28       ` 積丹尼 Dan Jacobson
@ 2021-08-26 17:31         ` Eli Zaretskii
  2021-09-21 15:46         ` Stefan Kangas
  1 sibling, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2021-08-26 17:31 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 50204

> From: 積丹尼 Dan Jacobson <jidanni@jidanni.org>
> Cc: 50204@debbugs.gnu.org
> Date: Fri, 27 Aug 2021 01:28:32 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz@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".





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#50204: "Success" seen in failed copy message
  2021-08-26 17:28       ` 積丹尼 Dan Jacobson
  2021-08-26 17:31         ` Eli Zaretskii
@ 2021-09-21 15:46         ` Stefan Kangas
  2021-09-21 16:01           ` Eli Zaretskii
  1 sibling, 1 reply; 9+ messages in thread
From: Stefan Kangas @ 2021-09-21 15:46 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 50204

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

>>>>>> "EZ" == Eli Zaretskii <eliz@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?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#50204: "Success" seen in failed copy message
  2021-09-21 15:46         ` Stefan Kangas
@ 2021-09-21 16:01           ` Eli Zaretskii
  2021-09-21 16:40             ` Stefan Kangas
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2021-09-21 16:01 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 50204, jidanni

> From: Stefan Kangas <stefan@marxist.se>
> Date: Tue, 21 Sep 2021 08:46:11 -0700
> Cc: Eli Zaretskii <eliz@gnu.org>, 50204@debbugs.gnu.org
> 
> 積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> 
> >>>>>> "EZ" == Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#50204: "Success" seen in failed copy message
  2021-09-21 16:01           ` Eli Zaretskii
@ 2021-09-21 16:40             ` Stefan Kangas
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Kangas @ 2021-09-21 16:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 50204, jidanni

tags 50204 notabug
close 50204
thanks

Eli Zaretskii <eliz@gnu.org> writes:

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

I'm therefore closing this bug report.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-09-21 16:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-25 19:25 bug#50204: "Success" seen in failed copy message 積丹尼 Dan Jacobson
2021-08-26  6:19 ` Eli Zaretskii
2021-08-26 16:53   ` 積丹尼 Dan Jacobson
2021-08-26 17:03     ` Eli Zaretskii
2021-08-26 17:28       ` 積丹尼 Dan Jacobson
2021-08-26 17:31         ` Eli Zaretskii
2021-09-21 15:46         ` Stefan Kangas
2021-09-21 16:01           ` Eli Zaretskii
2021-09-21 16:40             ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).