From 64c6b7c0f95e4575613e62617fb3094705f15846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 14 May 2013 09:08:54 +0200 Subject: [PATCH] Restore LP_ERR as the first instruction of _lp_set_prompt --- liquidprompt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liquidprompt b/liquidprompt index 7834fd5..9e840e0 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1381,14 +1381,14 @@ _lp_time() _lp_set_prompt() { + # as this get the last returned code, it should be called first + LP_ERR="$(_lp_sl $(_lp_return_value $?))" + # Reset IFS to its default value to avoid strange behaviors # (in case the user is playing with the value at the prompt) local IFS="$(echo -e ' \t') " # space, tab, LF - # as this get the last returned code, it should be called first - LP_ERR="$(_lp_sl $(_lp_return_value $?))" - # execute the old prompt if not on Mac OS X (Mountain) Lion case "$LP_OS" in Linux|FreeBSD|SunOS) $LP_OLD_PROMPT_COMMAND ;;