In bash 'export' sets an environment variable ('path' in this case) to a value. In ...
export path=xyz:$PATH
... 'path' and '$PATH' are really the same variable; thus 'path=xyz:$PATH' appends the original 'path' value after the 'xyz' path(s) you supply.
The 'export' command tells the Mac's UNIX core to accept the new concatenated string 'xyz
riginal_PATH_entry' as the new environment 'path' value.
[
03 October 2005, 23.17
Correction:
As per lurk's observation:
path and PATH are two different variables. PATH as a env varialble, and path as a user defined variable. Thus, ...
Thus, the above statement (with respect to 'Terminal') is rewritten as ...
"In bash 'export' sets an environment variable ('PATH' in this case) to a value. In ...
export PATH=xyz:$PATH
... 'PATH' and '$PATH' are really the same variable; thus 'PATH=xyz:$PATH' appends the original 'PATH' value after the 'xyz' PATH(s) you supply.
The 'export' command tells the Mac's UNIX core to accept the new concatenated string 'xyz
riginal_PATH_entry' as the new environment 'PATH' value."
With respect to 'X11's 'bashrc' you only need ...
PATH=$PATH:xyz
Thanks lurk
]