On Tue, 30 Sep 2003 2:42pm -0500, Phil Garcia wrote:
> Machine Type: i686-pc-linux-gnu
>
> Bash Version: 2.05a
> Patch Level: 0
> Release Status: release
>
> Description:
>
> Create a shopt that prints the exit status each time a command executes.
>
Bash version 2.05a has introduced the ksh-like 'ERR' trap, and we
can use this, and eventually the 'EXIT' trap likewise, to do this:
$ trap 'echo $?' ERR
$ cat aaa
cat: aaa: No such file or directory
1
$
--
Felipe Kellermann