title: How can I resolve this error in shell scripting: "read: Illegal option -t"?
body: <pre><code>#!/bin/bash
  echo -n "Hurry up and type something! &gt; "
  if read -t 10 response ; then
  echo "Greate, you made it in time!"
  else
  echo "sorry, you are too slow!"
  fi
  </code></pre>
  
  <p>I have written above code in terminal and got error "read: Illegal option -t".</p>