Re: Strange *nix people.



On 2010-12-21, goarilla <kevin.paulus@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Could you please explain how you give the exit status on the prompt i've
been wanting this for ages but every shot i've taken at it always fails
eg: just echoing $? doesn't work, since you'll get the exit status from
when the shell was started.

Use single quotes or backslash. For example PS1='$? $'


It would be greatly appreciated !


PS: is the different background accomplished with the '\[\X;YZ\]' stuff ?

Yes. I don't have time to explain right now but someone probably will.


--
A bureaucracy's success is determined by its rebels.
.



Relevant Pages