job id
For experimental.
Get id of current job.
Command Type
built-in
Signature
> job id {flags}
Input/output types:
| input | output |
|---|---|
| nothing | int |
Examples
Get id of current job.
> job id
Notes
This command returns the job id for the current background job. The special id 0 indicates that this command was not called from a background job thread, and was instead spawned by main nushell execution thread.
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.