Align fg and bg commands: With no parameters fg prints the help.

`bg` on the other hand only prints `no job`. Now both print `no job`.
This commit is contained in:
Andreas Heiduk 2014-11-07 19:05:09 +01:00
parent 701a37fd00
commit 09bac97bb4

View file

@ -3502,7 +3502,6 @@ static int builtin_fg(parser_t &parser, wchar_t **argv)
append_format(stderr_buffer, append_format(stderr_buffer,
_(L"%ls: There are no suitable jobs\n"), _(L"%ls: There are no suitable jobs\n"),
argv[0]); argv[0]);
builtin_print_help(parser, argv[0], stderr_buffer);
} }
} }
else if (argv[2] != 0) else if (argv[2] != 0)