Skip to content

Sourcing a file will lose the current PATH value #206

@certik

Description

@certik

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions