http://bugs.freedesktop.org/show_bug.cgi?id=26632





--- Comment #6 from Dan Nicholson <dbn.li...@gmail.com>  2010-02-18 12:42:34 
PST ---
(In reply to comment #4)
> Created an attachment (id=33393)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=33393) [details]
> Make mklib propogate all errors
> 
> Bonus patch :-)

Nice. Unfortunately, I think trap on ERR is an extension and won't work for
many shells. It doesn't appear to be POSIX let along bourne compatible.

http://www.opengroup.org/onlinepubs/000095399/utilities/trap.html

Here's the default ubuntu/debian shell, dash:

$ trap 'echo foo' ERR
trap: 1: ERR: bad trap

I think we'll have to revert that patch and go with the brute force method of
checking all the significant commands. You can do it a little simpler, though:

command that could fail || exit $?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to