bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash: please provide an easy way to spawn a new process group from s


From: Oğuz
Subject: Re: bash: please provide an easy way to spawn a new process group from script
Date: Sun, 1 Nov 2020 12:01:29 +0200

1 Kasım 2020 Pazar tarihinde clime <clime7@gmail.com> yazdı:
...

> Please, provide a syntactic construct to spawn a new process group (or
> at least there should be some usable command to do that).
>
>
You can use the loadable builtin `setpgid' if you have to. Assuming
BASH_LOADABLES_BUILTIN is set, this should work:

    enable -f setpgid{,}
    { setpgid $BASHPID{,}; a | b; } &
    setpgid $!{,}
    kill -- -$!



> Thank you
> clime
>
>

-- 
Oğuz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]