I'm having trouble analyzing this issue. $ env EDITOR=J-Jonah-Jameson blackbox-terminal --command 'printenv EDITOR > editor' $ cat editor J-Jonah-Jameson
As you can see, blackbox-terminal does not fiddle with $EDITOR. The string "EDITOR" does not appear in the source code. I'd conjecture your $EDITOR is being set in shell init files like ~/.bashrc and /etc/bash.bashrc and /etc/profile and whatnot.