aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-26 19:34:23 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-26 19:34:23 +0100
commit2b48814d3b685d1527e1d17ab939be71ff6b8c55 (patch)
treebae0ba4d6f8a393b31b688190c332846af17b5da /src
parent679fac1f8be87ccb431d1ce981e98bdbfbd61dd8 (diff)
downloadnissy-2b48814d3b685d1527e1d17ab939be71ff6b8c55.tar.gz
nissy-2b48814d3b685d1527e1d17ab939be71ff6b8c55.zip
Fixing the fix (the previous commit introduced a bug when the step was not specified) + minor fixes in shell
Diffstat (limited to '')
-rw-r--r--src/commands.c4
-rw-r--r--src/shell.c2
2 files changed, 3 insertions, 3 deletions
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)
268 " system (such a Linux or MacOS) or in pdf and html" 268 " system (such a Linux or MacOS) or in pdf and html"
269 " format in the docs folder.\n" 269 " format in the docs folder.\n"
270 "Nissy is available for free at " 270 "Nissy is available for free at "
271 "https://github.com/sebastianotronto/nissy" 271 "https://github.com/sebastianotronto/nissy\n"
272 ); 272 );
273 } else { 273 } else {
274 printf("Command %s: %s\nusage: %s\n", args->command->name, 274 printf("Command %s: %s\nusage: %s\n", args->command->name,
@@ -365,7 +365,7 @@ new_args()
365 args->opts = malloc(sizeof(SolveOptions)); 365 args->opts = malloc(sizeof(SolveOptions));
366 366
367 /* step and command are static */ 367 /* step and command are static */
368 args->step = NULL; 368 args->step = steps[0]; /* default: first step in list */
369 args->command = NULL; 369 args->command = NULL;
370 370
371 return args; 371 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()
69 ); 69 );
70 70
71 while (true) { 71 while (true) {
72 fprintf(stderr, "nissy-# "); 72 fprintf(stdout, "nissy-# ");
73 if (fgets(line, MAXLINELEN, stdin) == NULL) 73 if (fgets(line, MAXLINELEN, stdin) == NULL)
74 break; 74 break;
75 shell_argc = parseline(line, shell_argv); 75 shell_argc = parseline(line, shell_argv);

Generated with cgit - Back to sebastiano.tronto.net