Skip to content

run_onchange for sourcing shell #4293

Closed Answered by twpayne
nsado123 asked this question in Q&A
Discussion options

You must be logged in to vote

Sourcing files does not work the way you think it works. Sourcing a file only modifies the shell that sources the file and any subshells of that shell. Since all scripts run in subshells (that's the way it is on all UNIXes), sourcing a script has no effect outside the shell that sourced it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nsado123
Comment options

Answer selected by twpayne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants