Reattach to the per-user bootstrap namespace in its "Background"
session then exec the program with args. If "-l" is given,
rewrite the program's argv so that it starts with a '-'.
wrong key for your command. Do you compare with strcmp, not processing args as usual?
fatal: execv failed: No such file or directory
if you run with correct key but without program:
 11465 segmentation fault /opt/local/bin/reattach-to-user-namespace -l
Thank you for reporting these problems.
I have pushed some new commits to the pu branch that should resolve them. The tip of pu is currently at 8f86025.
The segfault is fixed, and it now warns about unknown options in the first argument position. Any option-like arguments after the first are for the child program, so they are not interpreted.
If these work for you I will promote them to master and drop a new tag.
The commits (along with some other changes) are now on master, and are included in the new v2.0 tag.
Feel free to reopen this issue if the solution is not adequate.
Thank you ;)