Setting PATH and sourcing another file will lose the PATH definition
export PATH='...'
source "C:\Users\...\AppData\Local\miniforge3\envs\lf\etc\conda\activate.d\libxml2_activate.sh"
When we run this via shell --interact --norc a.sh, and do echo $PATH, it will not print the new PATH. But if we comment out the source .... line, it will print the new PATH.
I had an "exit" in the sourced script. It probably should have exited the interactive session. Removing "exit" makes it work.