Qvm-run VM "source ~/.bashrc; set" does not seem to set anything in 4.2

I need the environment set up in a qvm-run, but
qvm-run VM "source ~/.bashrc; set" does not seem to set anything, yet qvm-run VM "VAR=thing; set" does seem to set VAR.

Also, starting a graphical terminal and typing set does show the variables set correctly

Any idea what’s happening?

Apparently this used to work at the beginning of 2022: Source .profile on qvm-run call

I’m guessing it’s some kind of new security-related change in 4.2

If you are trying to see STDOUT, you must include --pass-io after qvm-run.

It works for me. I added export Z="Z" in the file /home/user/.bashrc and qvm-run --pass-io VM "source ~/.bashrc ; set" shows a Z=Z line

(I chose Z name because it was displayed at the end of the list, and I typed value Z because I’m lazy and I lack imagination).