I think it would be good idea if strace accepted NAME=VALUE arguments before name of command it should run and put them into environment, so that if I want to see what: LD_TRACE_LOADED_OBJECTS=1 ./somebinary actually does, I can run: strace LD_TRACE_LOADED_OBJECTS=1 ./somebinary Similarly LD_LIBRARY_PATH, when I want strace itself use different one from what I want for the binary, etc. Roland: That is reasonable, though perhaps -E foo=bar instead of breaking either funny-named files or funny-named envvars. Of course you can always strace env foo=bar blah and ignore the part before the execve.
I implemented it upstream, but after the 4.4.93 release. The next release will have the -E switch.
4.4.94 release has the feature and will hit rawhide soon enough.