bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trap on error


From: Chet Ramey
Subject: Re: trap on error
Date: Tue, 13 Nov 2001 08:53:01 -0500

> > 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]