title: The exit status code for the 'grep' command
body: <p>The <em><a href="http://linux.die.net/man/1/grep" rel="nofollow noreferrer">grep</a></em> manual at the exit status section report:</p>
  <pre>
  EXIT STATUS
         The  exit  status is 0 if selected lines are found, and 1 if not
         found.  If an error occurred the exit status is 2.  (Note: POSIX
         error handling code should check for '2' or greater.)
  </pre>
  <p>But the command:</p>
  <pre><code>echo &quot;.
  ..
  test.zip&quot;|grep -vE '^[.]'
  echo $?
  
  echo &quot;test.zip
  test.txt&quot;|grep -vE '^[.]'
  echo $?
  </code></pre>
  <p>The value returned is always 0. I would have expected 1 and 0. What am I doing wrong?</p>