bug-bash
[Top][All Lists]
Advanced

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

Re: feature request


From: William Park
Subject: Re: feature request
Date: Mon, 5 Jun 2006 12:58:49 -0400
User-agent: Mutt/1.4.2.1i

On Wed, May 31, 2006 at 04:49:36PM -0500, A P Garcia wrote:
> It would be very useful to have a shell option that displays the exit
> code of each command when it terminates.

I'm currently using

    PS1='$? \u@\h:\w\$ '

$? is what you are after.

-- 
William Park <opengeometry@yahoo.ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
           http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
          http://freshmeat.net/projects/bashdiff/




reply via email to

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