title: cmp command returning EOF on my output despite exact match as far as i can tell
body: <p>So I will start by saying this is for a course and I assume the professor won't really care that they are the same if cmp returns something weird. I am attempting to compare the output of my code, named uout, to the correct output, in the file correct0. The problem however is that it returns "cmp: EOF on uout". From a little bit of digging I found that EOF indicates they are the same up to the end of the shorter file with the shorter file being the one named after EOF, so what I gather from this is that they are the same until uout ends short. Problem is however, that it absolutely does NOT end short. When opening both in a text editor and manually checking spaces, line and column numbers, etc. everything was an EXACT match.</p>
  
  <p>To illustrate my point here are the files copied directly using ctrl-a + ctrl-v:</p>
  
  <p><strong>correct0</strong> <a href="http://pastebin.com/Bx7SM7rA" rel="nofollow">http://pastebin.com/Bx7SM7rA</a></p>
  
  <p><strong>uout</strong> <a href="http://pastebin.com/epMFtFpM" rel="nofollow">http://pastebin.com/epMFtFpM</a></p>
  
  <p>If anyone knows what is going wrong and can explain it simply I would appreciate it. I have checked multiple times and can't find anything wrong with it. Maybe it is something simple and I just can't see it, but everything I have seen so far seems to suggest that the files are the same up until the "shorter one" ends, and oddly even if i switch my execution from</p>
  
  <pre><code>cmp correct0 uout
  </code></pre>
  
  <p>to</p>
  
  <pre><code>cmp uout correct0
  </code></pre>
  
  <p>both instances end up returning</p>
  
  <pre><code>cmp: EOF on uout
  </code></pre>