Re: Bug in pdksh when trapping EXIT & ERR

2007-07-10 Thread Otto Moerbeek
On Tue, 10 Jul 2007, Clint Pachl wrote: > I wanted to know if others thought pdksh v5.2.14's behavior is incorrect when > trapping the EXIT and ERR. I wrote four tests to demonstrate. TEST_1 fails in > my opinion. I believe it should output the following: > ERR > EXIT > > > # TEST_1 > trap 'echo

Bug in pdksh when trapping EXIT & ERR

2007-07-10 Thread Clint Pachl
I wanted to know if others thought pdksh v5.2.14's behavior is incorrect when trapping the EXIT and ERR. I wrote four tests to demonstrate. TEST_1 fails in my opinion. I believe it should output the following: ERR EXIT # TEST_1 trap 'echo EXIT' EXIT trap 'echo ERR' ERR set -e cd /X 2>/dev/