disown: Fix a format string

Missed in 77aeb6a2a8, this would crash otherwise.
This commit is contained in:
Fabian Boehm 2023-11-29 16:57:01 +01:00
parent 9b54e243b1
commit 13ba5bd405
2 changed files with 4 additions and 1 deletions

View file

@ -107,7 +107,7 @@ pub fn disown(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) -> O
} else {
streams
.err
.append(wgettext_fmt!("%ls: Could not find job '%d'\n"));
.append(wgettext_fmt!("%ls: Could not find job '%d'\n", cmd, pid));
}
}
}

View file

@ -130,3 +130,6 @@ function thud --on-job-exit $truepid
echo "thud called"
end
# CHECK: thud called
disown 252
# CHECKERR: disown: Could not find job '252'