title: bash output command not found
body: <p>Im facing following problem I have created mentioned condition, but when I choose y for yes everything is ok, but when I choose n for not I get annoying error output:
  output :
  Do you agree yes (y) or not (n)
  n
  ./myscript: [n: command not found</p>
  
  <p>myscript is the name of my script
  Code here:</p>
  
  <pre><code>echo  "Do you agree yes (y) or not (n)"
  read  answer
  if ( [ "$answer" =  'y' ]  ||  ["$answer" = 'Y' ]);
  then
  
  echo  -e  “  output for y”
  done
  else
  echo -e "  output for n "
  exit 1;
  </code></pre>
  
  <p>Any idea how can I get rid of the output and fix the problem ? 
  thanks</p>