View Single Post
Old 07-21-2014, 04:58 PM   #1011
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
I need to check if it's JB friendly or not .

----

@knc1: env PATH=... exec blah ?

(Yeah, I like env ;D ).
Maybe - at least it would in Bash.

This function **should** be (and is in some OSs) named "chain".
It should just be replacing the current code and data sections of the program executing with that of the program executed.
I.E: Same environment, same open file descriptors (the current command file should be open on fd #3 or on fd #5), same-same everything else.

But this is an old version of Busybox ash -
All we can do is mess with it until we figure out how it **actually** works.

Last edited by knc1; 07-21-2014 at 05:01 PM.
knc1 is offline   Reply With Quote