Date: Fri, 16 Sep 2016 08:51:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 212723] cmp returns EOF for different files Message-ID: <bug-212723-6@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212723 Bug ID: 212723 Summary: cmp returns EOF for different files Product: Base System Version: 10.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: tigger@lvlworld.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org The following test can be used to reproduce the issue. echo "t" > t1 ; cp t1 t2 ; echo "t" >> t1 cmp t1 t2 Which will produce this error message: cmp: EOF on t2 However, this test works perfectly: echo "x" > x ; echo "y" > y cmp x y Which returns the expected result: x y differ: char 1, line 1 --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212723-6>