fix: correct job management commands to call with colon

sink-enhance
sammyette 2023-02-19 15:11:55 -04:00
parent 26c8f28034
commit 013fa30658
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ commander.register('bg', function(_, sinks)
return 1
end
local err = job.background()
local err = job:background()
if err then
sinks.out:writeln('bg: ' .. err)
return 2

View File

@ -7,7 +7,7 @@ commander.register('fg', function(_, sinks)
return 1
end
local err = job.foreground() -- waits for job; blocks
local err = job:foreground() -- waits for job; blocks
if err then
sinks.out:writeln('fg: ' .. err)
return 2