bash crashes when splitcurl script try download non existent file

2024-06-18 Thread Mikhail Gavrilov
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, './splitcurl "ftp://test.rebex.n…' terminated by signal S

DEBUG trap in a background shell steals controlling terminal forcing parent shell to exit

2024-06-18 Thread Mark March
I am working with a large Bash code base where most scripts disable job control and the DEBUG trap is used extensively. I noticed that if I tried to run my scripts in the background, the interactive shell that started them would immediately exit on any keyboard input. A simple repro is to run b