Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
On 9/7/17 12:23 PM, Andy Chu wrote:
> I did a very principled implementation of errexit in OSH. I didn't find
> any problems with it in THEORY. Yes in practice bash has surprising
> behavior, but in theory it's a good idea, and it's not hard to implement.
> There are just a handful of places where you turn it off: the condition of
> while/until loops, if conditions, all clauses in && and || except the last
> clause, etc.
>
> The main thing I disallowed was the weird behavior mutating errexit while
> it's disabled, which bash has a somewhat odd rule for. Example:
Which Posix requires.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/