[Top][All Lists]

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

Re: suggestion

From: Felipe Kellermann
Subject: Re: suggestion
Date: Tue, 23 Dec 2003 01:28:09 -0200 (BRST)

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

Felipe Kellermann

reply via email to

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