Be Careful Using tmux and Environment Variables
tmux has an interesting quirk in the way it handles environment variables that if you’re not careful can cause some seemingly strange behavior.
Fortunately, this behavior is documented but in my opinion, is not intuitive. From the tmux man page: