title: Executing Bash files on Cygwin error
body: <p>In relatively new at bash scripting and when running my script files on the cygwin shell I have some errors that make me think there's something about cygwin I'm missing. I've read several tutorials and copied a script from one of them (trying to understand whats wrong with mine) that is supposed to be OK but i get the following error (same one than my script):</p>
  
  <pre><code>': no es un identificador válido
  
  ./pruebas.sh: línea 17: error sintáctico cerca del elemento inesperado `fi'
  
  ./pruebas.sh: línea 17: `fi'
  </code></pre>
  
  <p>Translated into English I think errors should be like:</p>
  
  <pre><code>': is not a valid identifier
  
  ./pruebas.sh: line 17: sintax error near unexpected element `fi'
  
  ./pruebas.sh: line 17: `fi'
  </code></pre>
  
  <p>The script:</p>
  
  <pre><code>#!/bin/bash
  #Test IF-ELSE
  
  echo ' Adivina el valor numerico de la variable'
  read A
  if [ $A = 1 ];
  then
  echo 'Has acertado'
  exit 0
  else
  if [ $A = 2 ];
  then
  echo 'Estuviste cerca'
  fi
  else
  echo 'Erraste'
  fi
  </code></pre>
  
  <p>Any ideas of what's going wrong? Thanks in advance for your efforts.</p>