MacOS – Where does this strange output in Terminal come from


Everytime I open my terminal I get a little notification error:

declare -x Apple_PubSub_Socket_Render="/tmp/launch-jsWpOJ/Render"  
declare -x DISPLAY="/tmp/launch-yARwMh/org.macosforge.xquartz:0"  
declare -x HOME="/Users/Austin"  
declare -x LANG="en_US.UTF-8"  
declare -x LOGNAME="Austin"  
declare -x OLDPWD  
declare -x  
declare -x PWD="/"  
declare -x SHELL="/bin/bash"  
declare -x SHLVL="1"  
declare -x SSH_AUTH_SOCK="/tmp/launch-PWYfTW/Listeners"  
declare -x TERM="xterm-256color"  
declare -x TERM_PROGRAM="Apple_Terminal"  
declare -x TERM_PROGRAM_VERSION="326"  
declare -x TERM_SESSION_ID="EA9B2123-82A5-470E-8F9D-328367CEE7BD"  
declare -x TMPDIR="/var/folders/hb/ss6hsppn5497rzzmnx81hh8r0000gn/T/"  
declare -x USER="Austin"  
declare -x __CF_USER_TEXT_ENCODING="0x1F5:0:0"  
declare -x __CHECKFIX1436934="1"  

I don't really know how to get rid of this, I think it might have something to do with XQuartz or X11. Can anyone point me in the right direction to fix this?

Best Answer

The reason I was getting the output in my shell for every environment I created was because my ".bash_profile" had a some statements that didn't evaluate to true. The shell was looking for a path that didn't exist anymore, so I had to update the current path so the bash didn't generate an error.

Thanks everyone!