commit 2b48814d3b685d1527e1d17ab939be71ff6b8c55
parent 679fac1f8be87ccb431d1ce981e98bdbfbd61dd8
Author: Sebastiano Tronto <sebastiano.tronto@gmail.com>
Date: Fri, 26 Nov 2021 19:34:23 +0100
Fixing the fix (the previous commit introduced a bug when the step was not specified) + minor fixes in shell
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/commands.c b/src/commands.c
@@ -268,7 +268,7 @@ help_exec(CommandArgs *args)
" system (such a Linux or MacOS) or in pdf and html"
" format in the docs folder.\n"
"Nissy is available for free at "
- "https://github.com/sebastianotronto/nissy"
+ "https://github.com/sebastianotronto/nissy\n"
);
} else {
printf("Command %s: %s\nusage: %s\n", args->command->name,
@@ -365,7 +365,7 @@ new_args()
args->opts = malloc(sizeof(SolveOptions));
/* step and command are static */
- args->step = NULL;
+ args->step = steps[0]; /* default: first step in list */
args->command = NULL;
return args;
diff --git a/src/shell.c b/src/shell.c
@@ -69,7 +69,7 @@ launch()
);
while (true) {
- fprintf(stderr, "nissy-# ");
+ fprintf(stdout, "nissy-# ");
if (fgets(line, MAXLINELEN, stdin) == NULL)
break;
shell_argc = parseline(line, shell_argv);