summaryrefslogtreecommitdiffstats
path: root/src/m_prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_prompt.c')
-rw-r--r--src/m_prompt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/m_prompt.c b/src/m_prompt.c
index 5278c42..a7c257d 100644
--- a/src/m_prompt.c
+++ b/src/m_prompt.c
@@ -79,6 +79,11 @@ static char
ft_strsubst_s(var, "\\v", FT_MSH_VERSION);
else if (var[i + 1] == 's')
ft_strsubst_s(var, "\\s", FT_PROGNAME);
+ else if (var[i + 1] == '?')
+ {
+ ft_uitoa_s(tmp, msh->ret);
+ ft_strsubst_s(var, "\\?", tmp);
+ }
}
i++;
}