From 2b48814d3b685d1527e1d17ab939be71ff6b8c55 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 26 Nov 2021 19:34:23 +0100 Subject: Fixing the fix (the previous commit introduced a bug when the step was not specified) + minor fixes in shell --- src/commands.c | 4 ++-- src/shell.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/commands.c b/src/commands.c index 2442d81..5e01e67 100644 --- 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 index a23ea06..8bc2e0b 100644 --- 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); -- cgit v1.3