More synopsis work.

A great leap forward
This commit is contained in:
Aaron Gyes
2021-12-21 17:24:47 -08:00
parent 6c6a8f93e9
commit 14d60ccb32
45 changed files with 131 additions and 201 deletions

View File

@@ -6,9 +6,7 @@ wait - wait for jobs to complete
Synopsis
--------
::
wait [-n | --any] [PID | PROCESS_NAME] ...
``wait`` [**-n** | **--any**] [*PID* | *PROCESS_NAME*] ...
Description
-----------
@@ -18,13 +16,11 @@ Description
- If a pid is specified, the command waits for the job that the process with the pid belongs to.
- If a process name is specified, the command waits for the jobs that the matched processes belong to.
- If neither a pid nor a process name is specified, the command waits for all background jobs.
- If the ``-n`` / ``--any`` flag is provided, the command returns as soon as the first job completes. If it is not provided, it returns after all jobs complete.
- If the **-n** / **--any** flag is provided, the command returns as soon as the first job completes. If it is not provided, it returns after all jobs complete.
Example
-------
::
sleep 10 &