On Wednesday 25 November 2009 15:51:25 Raphael Hertzog wrote:
> On Wed, 25 Nov 2009, Andreas Gruenbacher wrote:
> > On Wednesday 25 November 2009 10:44:51 Jean Delvare wrote:
> > > What about just fixing the bug that was reported, first?
> > 
> > I've done that now, but that doesn't address the more general problem.  On 
the 
> > other hand, "set -e" also doesn't do the "right thing" for anything but 
simple 
> > commands -- it looks a bit like exception handling in more powerful 
> > programming languages, but in fact it's not.
> 
> It ensures the program stops as soon as an unexpected failure happens, in
> general it limits the amount of damage given an unexpected situation and
> makes the program return a non-zero error code so that the caller knows
> that something went wrong.

We would also have to enable pipefail, which requires bash >= 3.0 from 2004.  
That's probably fine though.

Andreas


_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to