Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
What's the last command in prompt expansion?
- X-seq: zsh-workers 27519
- From: JÃrg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: What's the last command in prompt expansion?
- Date: Mon, 14 Dec 2009 22:53:33 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1260832534; i=@xxxxxxxxxxxx; bh=39/kLLEe9r+I+mR8ZlIxbG9PpsM0EGKmQ C03pvTC0aQ=; h=To:From:Subject:Date:Message-ID:Mime-Version: Content-Type:Content-Transfer-Encoding:Sender; b=P0vHq//rBSjM/tZ4X p9V2tYjKU1K5J0cV6oBchclCBYyc4HuljGAdiiocwehTUZC8azHPPgTNGLOu8GmqVX/ czOXw/IPp/UY7BHcHquvWVgBxI9cpV+gbIUn1jwkRk9W8lNVS8yXz15fu386nDe2E9f MjlgN8PAIAFecpe9puic=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxx>
Hi,
what should be the expansion of %? in the prompt, the return code of the
last command run at the prompt or the return code of the last command run
by zsh?
I've a function triggered via TRAPALARM that modifies PS1, by resetting
its value and running zle reset-prompt. After the first time this
function was executed the return value isn't the one of the last command,
e.g. it's not 1 after executing false.
Do I have to save the return value and put the value into PS1?
Regards, JÃrg.
--
âPolitics is for the moment, equations are foreverâ
(Albert Einstein)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author