Re: [PATCH v2] git-prompt: preserve value of $? inside shell prompt
- From
Tony Finch <dot@dotat.at>
- Date
- Jan 14, 2015, 10:05 UTC
- Message-ID
- <alpine.LSU.2.00.1501141003400.23307@hermes-1.csi.cam.ac.uk>
- In-Reply-To
- <20150114005726.Horde.idyLC0Or9SvaghEN_N_pRg1@webmail.informatik.kit.edu>
SZEDER Gábor <szeder@ira.uka.de> wrote:
> > Makes sense, but the patch doesn't cover all cases, because > __git_ps1() can exit early
Thanks for looking at the patch. I feel quite silly for missing the other return points :-( Follow-up patch on the way...
Tony.
-- f.anthony.n.finch <dot@dotat.at> http://dotat.at/ Faeroes, Southeast Iceland: Cyclonic for a time in Faeroes, otherwise northeasterly 6 to gale 8, increasing gale 8 to storm 10. Very rough or high. Rain, snow or wintry showers. Moderate or poor, occasionally very poor.