From 6212a584a7089d103bdd68d938bee96375ce8caf Mon Sep 17 00:00:00 2001 From: Gokul Soumya Date: Fri, 3 Jul 2020 03:16:54 +0530 Subject: [PATCH] docs/jobs: Header is stripped in command substitution --- doc_src/cmds/jobs.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc_src/cmds/jobs.rst b/doc_src/cmds/jobs.rst index 3bb37ba80..9a987c804 100644 --- a/doc_src/cmds/jobs.rst +++ b/doc_src/cmds/jobs.rst @@ -30,6 +30,8 @@ jobs accepts the following switches: On systems that supports this feature, jobs will print the CPU usage of each job since the last command was executed. The CPU usage is expressed as a percentage of full CPU activity. Note that on multiprocessor systems, the total activity may be more than 100\%. +If the output of ``jobs`` is redirected or if it is part of a command substitution, the column header that is usually printed is omitted, making it easier to parse. + The exit status of ``jobs`` is ``0`` if there are running background jobs and ``1`` otherwise. no output.