Why do you need to remove all of these from the environment?
Here's the code if you wish to take a look:
https://github.com/lone-lang/lone#testing
https://github.com/lone-lang/lone/blob/master/scripts/test.b...
Without env -i, the folllowing tests would not be possible:
https://github.com/lone-lang/lone/blob/master/test/linux/env...
https://github.com/lone-lang/lone/blob/master/test/linux/env...
https://github.com/lone-lang/lone/blob/master/test/linux/env...
--argv0 STRING set argv[0] to STRING before running
Maybe that could be useful?/lib64/ld-linux-x86-64.so.2 --argv0 argv0isalie yourprogramm
ld is the (not dynamic) linker. It doesn't invoke your program at all.