diff --git a/src/shared/shell.c b/src/shared/shell.c
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -1432,7 +1432,7 @@ static void rl_cleanup(void)
 	if (data.history[0] != '\0')
 		write_history(data.history);
 
-	rl_message("%s", "");
+	rl_message();
 	rl_callback_handler_remove();
 }
 
