Hi all,<br>in some distributions bash is being replaced by dash to speed up the start up of the system.<br>It seems that bash is overbloated and things go faster using dash.<br>So they are linking /bin/sh to /bin/dash instead of /bin/bash
<br><br>Testing it I've noticed is a little faster (not apreciable in fast computers but it's much better in slow ones). <br>So the replacement could be a good thing.... unless you're a gambas programmer and use to be a SHELL fan.
<br><br>This code doesn't work properly using dash as replacement to bash:<br><br>Dim stuffProcess AS Process<br>    TRY stuffProcess = SHELL ("whatever you like")<br>    TRY stuffProcess.Kill<br>     stuffProcess = NULL
<br><br><br>After executing it I can see as "sh" is killed, but "whatever you like" is still alive. Using bash, both sh & "whatever you like" are killed.<br><br>I know this is not a real gambas bug, probably is due to the limitations of dash, 
<br>but we are going to deal with it sooner or later, so if anybody has any idea on how to do it, or if BenoĆ®t knows how to solve it <br>thinking in the future, any help is welcome.<br><br>P.S. I've checked that TRY stuffProcess = SHELL ("whatever you like")  launch two processes, with consecutive id:
<br>"sh" with id = stuffProcess.id and "whatever you like" with id= StuffProcess.id +1, so this has worked for me:<br><br>Dim stuffProcess AS Process<br>dim idProcess as integer<br>
    TRY stuffProcess = SHELL ("whatever you like")<br>     idProcess= stuffProcess.id<br>     TRY SHELL("kill -9 " & cstr(stuffProcess.id)) <br>     TRY SHELL("kill -9 " & cstr(stuffProcess.id
 +1 )) <br>     stuffProcess = NULL<br><br>But, obviously this is just rubbish and I wouldn't like to have to use it, and even I'm not sure it will work the same with <br>different systems or distributions.<br><br><br><br>