[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: errno in PS1 variable [patch included]
From: |
Andreas Schwab |
Subject: |
Re: errno in PS1 variable [patch included] |
Date: |
25 Nov 2001 20:22:18 +0100 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.1.30 |
Yonatan@xpert.com (Yonatan Bokovza) writes:
|> I thought I could gain a lot if the last
|> errno could be a part of my prompt.
|> The following patch makes this
|> PS1="\E "
|> show the last errno as the prompt.
In case you mean exit status instead of errno:
PS1='$? '
Andreas.
--
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5