diff options
Diffstat (limited to 'builtin_jobs.cpp')
-rw-r--r-- | builtin_jobs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin_jobs.cpp b/builtin_jobs.cpp index dfd49f29..02bf94f2 100644 --- a/builtin_jobs.cpp +++ b/builtin_jobs.cpp @@ -123,7 +123,7 @@ static void builtin_jobs_print(const job_t *j, int mode, int header) /* Print table header before first job */ - stdout_buffer.append(_(L"Procces\n")); + stdout_buffer.append(_(L"Process\n")); } for (p=j->first_process; p; p=p->next) @@ -164,7 +164,6 @@ static int builtin_jobs(parser_t &parser, wchar_t **argv) int found=0; int mode=JOBS_DEFAULT; int print_last = 0; - const job_t *j; argc = builtin_count_args(argv); woptind=0; @@ -305,7 +304,7 @@ static int builtin_jobs(parser_t &parser, wchar_t **argv) return 1; } - j = job_get_from_pid(pid); + const job_t *j = job_get_from_pid(pid); if (j && !job_is_completed(j)) { @@ -344,6 +343,7 @@ static int builtin_jobs(parser_t &parser, wchar_t **argv) append_format(stdout_buffer, _(L"%ls: There are no jobs\n"), argv[0]); + return 1; } return 0; |