Re: Async processes started in functions not reliably started

2019-08-03 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20190803224008.dvnlu%stef...@sdaoden.eu>: ... |wanted to add a reaper process which automatically kills tests |which need longer than X seconds. That turns out to be more .. | echo shell is $SHELL/$0 | ( | int= hot= | echo 'Starting job reaper' |

Async processes started in functions not reliably started

2019-08-03 Thread Steffen Nurpmeso
Hello. For the MUA i maintain i yet implemented parallel tests, and now wanted to add a reaper process which automatically kills tests which need longer than X seconds. That turns out to be more complicated than i thought, it works just fine in mksh, but does not work at all in dash (which can al

History not saved when closing terminal while bash is sourcing a script

2019-08-03 Thread Tomas Janousek
Hello, today I was wondering why I'm sometimes losing history entries and found out that bash (5.0.3(1)-release, on Debian testing) won't save the history file on closing the terminal window if it's currently sourcing something. I'm attaching a script that uses tmux to simulate the scenario. On my