Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira ( If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1150541 - zsh wait builtin does not work for already exited processes [RHEL-6 moved to RHEL-7 for compatibility reasons]
Summary: zsh wait builtin does not work for already exited processes [RHEL-6 moved to ...
Status: CLOSED DUPLICATE of bug 1150554
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: zsh
Version: 7.0
Hardware: x86_64
OS: Linux
Target Milestone: rc
: ---
Assignee: Kamil Dudka
QA Contact: BaseOS QE - Apps
Depends On: 1150554
TreeView+ depends on / blocked
Reported: 2014-10-08 12:13 UTC by Tim Speetjens
Modified: 2019-08-15 04:00 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1150554 1162198 (view as bug list)
Last Closed: 2014-11-21 11:29:57 UTC
Target Upstream Version:

Attachments (Terms of Use)
reproducer script (deleted)
2014-10-08 12:23 UTC, Tim Speetjens
no flags Details

Description Tim Speetjens 2014-10-08 12:13:03 UTC
Description of problem:
When a child process is started, and finished before a call to wait, an error is signaled.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Run the following script with zsh (or with zsh in ksh emulation mode):
sh -c "echo done" &
sleep 1
wait $pid1
echo "rc: $?"

sh -c "exit 3" &
sleep 1
wait $pid2
echo "rc: $?"

Actual results:
$ zsh
done pid 6156 is not a child of this shell
rc: 1 pid 6159 is not a child of this shell
rc: 1

Expected results:
$ zsh 
rc: 0
rc: 3

Additional info:
This is equally so for running zsh in ksh emulation mode. Running the same script with either bash or mksh, produces the expected result.

Comment 2 Tim Speetjens 2014-10-08 12:23:37 UTC
Created attachment 944977 [details]
reproducer script

Comment 10 Kamil Dudka 2014-11-21 11:29:57 UTC
We already had a RHEL-7 sibling of this bug, merging...

*** This bug has been marked as a duplicate of bug 1150554 ***

Note You need to log in before you can comment on or make changes to this bug.