On Wed, May 17, 2017 at 4:15 PM, mzpqnxow wrote: > Does the shell built-in "exec" -a app1 /bah/dynamic-loader.so > /path/to/app1" work or it has the same problem with argv[0] getting reset? > > It looks like argv[0] gets reset. Plus I don't think every shell's built-in "exec" supports that -a flag. I don't see it mentioned in the POSIX man page for exec - http://pubs.opengroup.org/onlinepubs/009604599/utilities/exec.html - nor do I see anything about it on the dash man page - https://linux.die.net/man/1/dash, I suspect that's specific to bash.