Without options, remove each Jobspec from the table of active jobs.
Without options, each Jobspec is removed from the table of active jobs.
If no Jobspec is supplied, the-a
option means to remove or mark all jobs;
If Jobspec is not present,
and neither the'-a' nor'-r' option is supplied, the current job is used.
If no Jobspec is present,
and neither the-a nor the-r option is supplied, the current job is used.
If Jobspec is not present,
and neither the-a nor the-r option is supplied, the current job is used.
If Jobspec is not present,
and neither-a nor-r is supplied, the shell's notion of the current job is used.
If the-x option is supplied, jobs replaces any Jobspec found in command or args with the corresponding process group ID,
and executes command passing it args, returning its exit status.
If the-h option is given, each Jobspec is not removed from the table,
but is marked so that SIGHUP is not sent to the job if the shell receives a SIGHUP.
The return status is that of the command placed into the foreground, or non-zero if run when job control is disabled or,
when run with job control enabled, Jobspec does not specify a valid job
or Jobspec specifies a job that was started without job control.