News for hackers. Stuff that matters.
Re:Be Careful Using Tmux and Environment Variables by paulryanrogers on Saturday March 04, 2023 @12:13PM (#35022455)
I wonder if it's because of export. If one puts an env var into a command alone then it should be OK. For example, `MY_VAR=1 my-commmand.sh` should leave env vars unchanged for everything else.
Re:Be Careful Using Tmux and Environment Variables by ajorgensen on Saturday March 04, 2023 @12:20PM (#35022530)
Yes that should work. In our case we have a few different windows/panes that all want the same environment so it made sense to reach for export as a way to ensure the environment was set but then ran into this quirk of tmux