commit ba5e8ebe9ab19ea8d69fd081946968cded0eba72
parent 4aa911f0dcc0f3e4c159d92598d42bb16e29e02e
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Thu, 11 May 2023 21:15:07 +0200
Flush stdout on batch mode and -i scrambles
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/shell.c b/src/shell.c
@@ -90,6 +90,7 @@ exec_args(int c, char **v)
free_alg(scramble);
args->scramble = NULL;
}
+ fflush(stdout);
}
} else {
cmd->exec(args);
@@ -132,6 +133,8 @@ launch(bool batchmode)
if (shell_argc > 0)
exec_args(shell_argc, shell_argv);
+
+ fflush(stdout);
}
for (i = 0; i < MAXNTOKENS; i++)