Is there a way to run a command "as if" it is in a new login session?
I've already tried
env -i. However, I don't want to deal with various ENV variables I have to set or unset.
I've also tried
bash -c "some command" and
bash -l -c "some commmand", but they all copy the current environment.
The closest I have come is a not-so-clean solution:
ssh me@localhost "some command"`