X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/e601ae72c16f3f80dcfc131b573ab2e91a390582..d45087889eac31f237bc9b10bddca7c9d2871296:/src/execute.gperf diff --git a/src/execute.gperf b/src/execute.gperf index de8b136..ddebd5d 100644 --- a/src/execute.gperf +++ b/src/execute.gperf @@ -83,7 +83,7 @@ static int run_cmd_help(void) return 0; } -int run_command(const char *line, int interactive) +int run_command(const char *line, int batch) { const char *cmd = line + strspn(line, " \t"); const char *arg = cmd + strcspn(cmd, " \t"); @@ -96,7 +96,7 @@ int run_command(const char *line, int interactive) c = in_word_set(cmd, arg-cmd); if (!c) { print_error(_("unknown command %.*s"), (int)(arg-cmd), cmd); - if (interactive) { + if (!batch) { fprintf(stderr, "%s\n", _("Try \"help\" for a list of possible commands.")); }