diff options
author | tjr <tjr@FreeBSD.org> | 2002-05-31 14:04:23 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-05-31 14:04:23 +0000 |
commit | 1f8bb8d729f20a8d5b24026ce730df4a62db28db (patch) | |
tree | 8c0ae8c6b41224d3a4d8ce7115141f17cc2c12af /bin/sh/sh.1 | |
parent | 7bc059de3ec1804876e2c07e586291159b861c5d (diff) | |
download | FreeBSD-src-1f8bb8d729f20a8d5b24026ce730df4a62db28db.zip FreeBSD-src-1f8bb8d729f20a8d5b24026ce730df4a62db28db.tar.gz |
Add -s (output PID's only) and -l (show PID's) options to the jobs(1)
builtin. Modify the output format to match what SUSv3 requires.
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r-- | bin/sh/sh.1 | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index eb3712b..b1bd6ff 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -1570,9 +1570,22 @@ Print the process id's of the processes in the specified If the .Ar job argument is omitted, use the current job. -.It Ic jobs -This command lists out all the background processes -which are children of the current shell process. +.It Xo +.Ic jobs +.Op Fl ls +.Op Ar job ... +.Xc +Print information about the specified jobs, or all jobs if no +.Ar job +argument is given. +The information printed includes job ID, status and command name. +.Pp +If the +.Fl l +option is specified, the PID of each job is also printed. +If the +.Fl s +option is specified, only the PID's of the jobs are printed, one per line. .It Ic pwd Op Fl LP Print the path of the current directory. The builtin command may differ from the program of the same name because the |