X-Git-Url: https://git.llucax.com/z.facultad/75.08/llamadas.git/blobdiff_plain/bd41501c2da2e6a1073c24db0d7381c9c7f8611f..86a82aeb2bf0314d876b0e8d1ae369140f39cff0:/inst/util.sh?ds=sidebyside diff --git a/inst/util.sh b/inst/util.sh index d4a5dcf..136ab7c 100755 --- a/inst/util.sh +++ b/inst/util.sh @@ -37,6 +37,10 @@ preguntar () { OPCIONES=$2 while [ true ] ; do read -p "$PREGUNTA [$OPCIONES]: " RTA + + # Escapeo el caracter '-' por '\-' + RTA=$(echo $RTA | sed "s/\-/\\\-/") + IS_OK=`echo "$OPCIONES" | grep "$RTA"` if [ ! -z "$IS_OK" ] && [ ! -z "$RTA" ] ; then eval "$3=$RTA"