Created:        2020-05-29 Fri
Last modified:  2022-03-25 Fri

Bash: How to determine the origin of the env variable

Excellent answer on Stack Exchange

$ PS4='+$BASH_SOURCE> ' BASH_XTRACEFD=7 bash -xl 7>&2