On Wed, Mar 14, 2007 at 07:27:22PM +0100, Andreas Jellinghaus wrote: > but I have no clue why it doesn't fail properly. maybe it has to do > with sub shells? part of it is run in > ( > pushd > .... > popd > ) 2>&1 |tee compile.log > > so I have a log file of what happened. > any idea what I need to do so the "make distcheck" failing in that > subshell causes the whole script to abort, so I will notice > problems like this in the future?
The exit code of the last command in the pipeline is used as exit code for the entire pipeline unless the pipefail option is set. Add set -o pipefail before the pipeline and it'll do the right thing. //Peter _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel