On Fri, Jun 21, 2024 at 22:26:07 +0500, Mikhail Gavrilov wrote:
> On Fri, Jun 21, 2024 at 10:06 PM Chet Ramey wrote:
> > Bash allows recursive trap handlers.
>
> Ok. But it's very suspicious for me because the script ended without
> any issues on macOS.
>
> mikhail@MBP-Mikhail ~> ./splitcurl.sh
On 6/21/24 1:26 PM, Mikhail Gavrilov wrote:
On Fri, Jun 21, 2024 at 10:06 PM Chet Ramey wrote:
It's a bug in the script. If you want to run `kill 0', which sends SIGTERM,
from a SIGTERM trap handler, you need to reset the SIGTERM trap to the
default before doing so.
Bash allows recursive trap
On Fri, Jun 21, 2024 at 10:06 PM Chet Ramey wrote:
>
> It's a bug in the script. If you want to run `kill 0', which sends SIGTERM,
> from a SIGTERM trap handler, you need to reset the SIGTERM trap to the
> default before doing so.
>
> Bash allows recursive trap handlers.
>
> What's happening is yo
On 6/18/24 6:49 PM, Mikhail Gavrilov wrote:
Hi,
bash crashes when splitcurl script try download non existent file
Here is script: https://github.com/axelabs/splitcurl/blob/master/splitcurl
Example which is triggers crash:
./splitcurl "ftp://test.rebex.net/no-file"; 10
fish: Job 1, './splitcur