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

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



El 31/05/07, Guimi <listas@guimi.net> escribió:
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


Muchas gracias ;)


--
Iñaki Baz Castillo
<ibc.listas@aliax.net>

Reply to: