If I type the following command in a bash shell:
STUFF=Blah env | grep STUFF
I am confused why it would return STUFF=Blah as I would expect to get an empty output.
The reason I am confused is because (as I understand) STUFF=Blah sets STUFF as a shell variable, but the env command returns all environment variables.
But in the above STUFF=Blah seems to be set as an environment variable. Where am I going wrong in my understanding?