title: GNU netcat exit code always 1?
body: <p>I'm trying to use GNU variant of netcat in script but it <em>always</em> returns exit code 1 even if everything is fine. Here's my case step by step:</p>
  
  <ol>
  <li>run <code>nc -l 127.0.0.1 -p 7000</code></li>
  <li>run <code>nc 127.0.0.1 7000</code></li>
  <li>press ctrl+c on client nc</li>
  <li>server nc always returns 1</li>
  </ol>
  
  <p>It makes me unable to detect socket bind error in bash script. Precisely it's GNU netcat from Arch linux. BSD netcat for Arch doesn't fail on socket bind error when address is in use so it's not much better either...</p>