#14 3.0.8: Fix bug with "wait" inside loop

open
3
2001-05-28
2001-05-14
No

This is fairly obscure. If the "wait" command is used
inside a loop construct ("for", "while", etc.), and a
background job is stopped by a signal while the "wait"
is waiting, zsh believes that the loop received the
signal and suspends the entire loop.

The "jobs" command then incorrectly shows that the job
for which zsh was waiting was piped to the standard
input of the "for" loop.

This patch fixes both problems. Originallyposted by
Sven in zsh-workers/14327.

Discussion

  • Bart Schaefer

    Bart Schaefer - 2001-05-14
    • summary: 3.0.8: Fix bug with "wait" inside loop --> 3.0.8: Fix bug with "wait" inside loop
     
  • Bart Schaefer

    Bart Schaefer - 2001-05-28
    • summary: 3.0.8: Fix bug with "wait" inside loop --> 3.0.8: Fix bug with "wait" inside loop
     
  • Bart Schaefer

    Bart Schaefer - 2001-05-28

    Logged In: YES
    user_id=22647

    The first fix for this problem introduced a different bug
    with suspending shell functions. A corrected patch has
    been uploaded.

     
  • Bart Schaefer

    Bart Schaefer - 2001-05-28

    Fix bug with "wait" inside loop (updated)

     
    Attachments
  • Bart Schaefer

    Bart Schaefer - 2001-05-28
    • summary: 3.0.8: Fix bug with "wait" inside loop --> 3.0.8: Fix bug with "wait" inside loop
     
  • Bart Schaefer

    Bart Schaefer - 2001-05-28

    Logged In: YES
    user_id=22647

    The first fix for this problem introduced a different bug
    with suspending shell functions. A corrected patch has
    been uploaded.

     
  • Bart Schaefer

    Bart Schaefer - 2001-05-28
    • summary: 3.0.8: Fix bug with "wait" inside loop --> 3.0.8: Fix bug with "wait" inside loop
     
  • Bart Schaefer

    Bart Schaefer - 2001-05-28
    • summary: 3.0.8: Fix bug with "wait" inside loop --> 3.0.8: Fix bug with "wait" inside loop
     
  • Nobody/Anonymous

    g0Yg1g <a href="http://fkltufwmdsnr.com/">fkltufwmdsnr</a>, [url=http://wjpzblileygs.com/]wjpzblileygs[/url], [link=http://ahypyftvsuis.com/]ahypyftvsuis[/link], http://adzjsswjfbqn.com/

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks