bug-bash
[Top][All Lists]
Advanced

[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

address@hidden (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
address@hidden                          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



reply via email to

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