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

Re: Bourne shell assistance needed for Bug #422909


> 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.

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

Reply to: