[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ¿Qué hace "set -e"?



Iñaki Baz Castillo escribió:
Hola, veo en muchos scripts de inicio que se ejecuta un "set -e" antes
del "case". No encuentro info sobre dicho comando "set", ¿qué hace?

Gracias.

Sirve para conocer y configurar variables de entorno.

"Every script you write should include set -e at the top. This tells bash that it should exit the script if any statement returns a non-true return value."
http://www.davidpashley.com/articles/writing-robust-shell-scripts.html

Más resumido y en castellano:
http://chaneke.red-libre.org/trucos/set.html

Saludos
Güimi
http://guimi.net
--
Por el bien de todos respetemos las normas de la lista:
http://wiki.debian.org/NormasLista



Reply to: