title: Why does get the error for ambiguous redirect here?
body: <p>I am trying to listen to a pipe and wrote this code, but I get the ambiguous redirect error, why that? </p>
  
  <pre><code>pipe = "./$1"
  
  # trap enables to execute a command when a signal is sent to your script
  trap "rm -f $pipe" EXIT
  
  
  if [[ ! -p $pipe ]]; then
      mkfifo $pipe
  fi
  
  
  while true
  do
      if read line &lt;$pipe; then
          if ["$line" == 'EXIT'  -o  "$line" == 'exit' ]; then
              break
          else 
              echo $line
          fi
      fi
  done
  </code></pre>