[Buildd-tools-devel] Bug#422909: Bourne shell assistance needed for Bug #422909

Junichi Uekawa dancer at netfort.gr.jp
Thu May 10 00:00:27 UTC 2007


Hi,

> The problem here is that if schroot-listmounts segfaults (the trigger
> in this case) or returns an error, the script continues without any
> indication of the fact, despite "set -e" being in effect.  In this bug
> this results in a failure to umount a set of mounted filesystems, and
> then an "rm -rf" taking out all the data further down the line.

I think you are looking for 
	set -o pipefail
in bash.


regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project




More information about the Buildd-tools-devel mailing list