Re: AIX and Interix also do early PID recycling.

2012-07-28 Thread Chet Ramey
On 7/27/12 9:50 AM, Michael Haubenwallner wrote: > With attached patch I haven't been able to break the testcase below so far > on that AIX 6.1 box here. > > But still, the other one using the $()-childs still fails. Try the attached patch for that. Chet -- ``The lyf so short, the craft so lon

EXIT traps in interactive shells

2012-07-28 Thread Maarten Billemont
Trapping on EXIT is a really convenient way of cleaning up after yourself when your script ends. The nice thing about it is that you don't need to handle all sorts of signals, handle them, and re-throw them. It makes for a single clean point to define your exit handlers. Unfortunately, I've n