Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15616

Re: bash loses control of jobs inside a command substitution

From Oğuz <oguzismailuysal@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: bash loses control of jobs inside a command substitution
Date 2019-11-20 13:01 +0300
Message-ID <mailman.2064.1574244120.13325.bug-bash@gnu.org> (permalink)
References <CAH7i3LqejwmNBPLOXHaesjXi9PA=+oU2jGxL7CGOE8cbEJyxzg@mail.gmail.com>

Show all headers | View raw


This seems more like a race condition, see:

    $ f() { ( sleep 0.1; exit 13 ) & "$@"; wait -n; echo $?; }
    $
    $ f sleep 0.0
    [1] 30612
    [1]+  Exit 13                 ( sleep 0.1; exit 13 )
    13
    $ f sleep 0.2
    [1] 30617
    [1]+  Exit 13                 ( sleep 0.1; exit 13 )
    127

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: bash loses control of jobs inside a command substitution Oğuz <oguzismailuysal@gmail.com> - 2019-11-20 13:01 +0300

csiph-web