helpThe GNU Bourne-Again SHell - Support: sr #108341, cannot wait for children created...

 
 

sr #108341: cannot wait for children created with process substitution

Submitted by:  None
Submitted on:  Fri 19 Jul 2013 11:17:21 AM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 19 Jul 2013 11:17:21 AM UTC, original submission:

The problem exists in at least current master (f281b8f4), 4.2.25(1)-release, 3.2.51(1)-release:

$ ./bash --version
GNU bash, version 4.2.45(2)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ git rev-parse HEAD
f281b8f4f8936b2713966274d9f8508a9f0910e4

$ cat > process-substistution-wait.sh
#!/bin/bash
exec 3> >(sleep 1)
wait $!
pstree -ap $$

$ ./bash process-substistution-wait.sh
process-substistution-wait.sh: line 3: wait: pid 19522 is not a child of this shell
bash,19521 process-substistution-wait.sh
├─bash,19522 process-substistution-wait.sh
│ └─sleep,19523 1
└─pstree,19524 -ap 19521

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup