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

In scripts use /bin/sh -e or set -e?



Hello all,

I noticed that a lot of postinst and other install scripts use
/bin/sh -e, but the -e option is nowhere documented in the man page.
Instead, there is the "set -e" command and this is what the other half
of the install scripts use (and this is what the packaging manual is
suggesting). What is correct or can you have both?

The packaging manual says you should set -e in maintainer scripts
"almost always". But it doesnt say when not to use it. What would be
such a case?

Bastian Kleineidam



Reply to: