On Mon, Aug 11, 2008 at 10:33 AM, Alon Bar-Lev <[EMAIL PROTECTED]> wrote: > I don't understand... the 'echo "."' will always set $? to 0... So how > come the script returns 1?
The script uses "set -e" so the interpreting shell will stop on the first error returned by an executed command. If "$DAEMON shutdown" returns an error code then the "echo "."" will not be executed. A common way to avoid the script to exit and continue even in case of error is to use: command || true You can also use: command || exit 0 to exit but without an error code. Bye -- Dr. Ludovic Rousseau _______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
