env ; #from with in terminal
I see the following output:
TERM_PROGRAM=Apple_Terminal ;#Not sure Terminal.app TERM_PROGRAM_VERSION=273 ;#The CFBundleVersion of Terminal.app TERM=xterm-color SHELL=/bin/bash ...
After trying to put meaning to each of the variables listed I can't really find any definitive sources for what exactly the TERM_PROGRAM and TERM_PROGRAM_VERSION variables are used for. Man pages and Apropos are not showing anything explaining it, and Google is not as well. Clearly it is relating to some kind of Apple specific setting in Mac OS X, just not sure what?