@Cykelero The same could happen with any variable if it conflicts with a global variable. If you use variable USER, you might also not realize that it already contains a value. And the value of PWD also sometimes changes "unexpectedly".