> > What do you mean by "trap"?
>
> trap "function_name" ERR
>
> Under the AIX platform I would write something like this is in a ksh script
> and it would call the function when a called function in the script
> returned a value > 0. I do not know what the equivilant is for ERR under
> Linux/bash.
There's no real equivalent in the currently-released version. The next
release of bash will implement the ERR trap.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/