I have an existing screen session and now I need to set some (more than one) environment variables to that session. These environment variables should not be visible to other screen sessions. I tried the solution in this answer which didn't work.
screen -r "myscreen" -X setenv x x_value;y y_value;z z_value
Here I got an error
-bash: x: command not found -bash: y: command not found
then I tried
screen -r "myscreen" -X setenv x x_value;setenv y y_value;setenv z z_value
which gave me
-bash: setenv: command not found -bash: setenv: command not found
How can I set multiple variables at once?