Date: Sat, 6 Jul 2002 02:19:14 -0700 (PDT) From: Jonathan Chen <jon@FreeBSD.org> To: doconnor@gsoft.com.au, jon@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/39217: cp returns non-zero when copying a symlink to it's linkee. Message-ID: <200207060919.g669JElu024247@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: cp returns non-zero when copying a symlink to it's linkee. State-Changed-From-To: open->closed State-Changed-By: jon State-Changed-When: Sat Jul 6 02:15:04 PDT 2002 State-Changed-Why: this is expected behavior. As noted in the man page, "If cp detects an attempt to copy a file to itself, the copy will fail." And failures are best detected by setting a non-zero exit status. In any case, if cp didn't actually do any copying, it should return an error, much like trying to copy a nonexistant file will return an error. If you have a compelling reason why cp should return 0, let me know and I will reopen the PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=39217 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207060919.g669JElu024247>