PGID of a process generated by bash script is incorrect.

Solution Verified - Updated -


  • Even if there is a 'set -m' line, only the first process generated by command substitution of bash script has the same PGID as the parent process. The processes after second have the different PGID.


  • Red Hat Enterprise Linux 6
  • bash-4.1.2-3.el6 later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content