case-esac; syntax error: newline unexpected (expecting ")") <p>I'm getting crazy for an easy case but can't find what I missing. they told me the next error:</p> <pre><code>name.sh: 21: name.sh: syntax error: newline unexpected (expecting ")") </code></pre> <p>my code is that one (the error is the line of the case):</p> <pre><code>#!/bin/bash while true do clear echo "________________________________________________________" echo "1) Encontraren el disco ficheros que contengan un patrón" echo "2) Tamaño de un directorio y su contenido" echo "3) Exit" echo "________________________________________________________" echo -e "\n" echo -e "Introduce una opción (1/2/3): \c" read answer case "$answer" in 1) ls ;; 2) cal ;; 3) exit ;; esac echo -e "pressiona enter per continuar \n" read input done </code></pre>