On 9/7/24 10:07, Greg Wooledge wrote:
By the way, there's a trick you can use to find out where shell variables are being defined: PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ilxc : 2>&1 | grep CDPATH The -il options run an interactive login shell. If you need to check an interactive non-login shell instead, just change the options to -ixc. This won't work as root, because PS4 from the environment is suppressed for security reasons when running bash as root.
Excellent, thank you. -- Q: What did one photon say to the other photon? A: I'm sick and tired of your interference. -- thebigmike1983 on Fark