title: read -p doesn't prompt the string when combined with 2>/dev/null, why is that?
body: <p>I have written a script N as below:</p>
  
  <pre><code>read -p "Enter a number" x
  if [ x -eq 1 ];then
       echo &amp;x
  else
       echo "not equal 1" &gt;&amp;2
  fi
  </code></pre>
  
  <p>But when I run this script like this</p>
  
  <p><code>N 2&gt;/dev/null</code></p>
  
  <p>it doesn't prompt the string in the read command. I understand that 2>/dev/null will redirect the stderr, but why the string in the read command doesn't show either?</p>