package Psh
::Builtins
::Bg
;
=item * C<bg [%JOB|COMMAND]>
Put a job into the background. If JOB is omitted, uses the
highest-numbered stopped job, if any.
If you specify a command instead of a job id it will execute
the command in the background. You can use this if you do not
want to type "command &".
if( ! Psh
::OS
::has_job_control
()) {
Psh
::Util
::print_error_i18n
('no_jobcontrol');
if (!defined($arg) || $arg eq '') {
($arg)= Psh
::Joblist
::find_job
();
return Psh
::evl
($arg.' &');
($arg)= Psh
::Joblist
::find_last_with_name
($arg,0);
return (0,undef) unless defined($arg);
Psh
::OS
::restart_job
(0, $arg);