And because any programs you run from a bash prompt are called by bash, the new path is in force for anything you run from the bash prompt.
The bottom line is that to add a new directory to the path, you must append or prepend the directory to the $PATH environment variable within a script included in the shell, and you must export the I can't speak for other distributions, but Ubuntu has a file, /etc/environment, that is the default search path for all users.
But of course, it's not effective in any programs or scripts called by the calling program.
Most Mac users never will, but if you do for some reason, remember this. This will open it up in a text editor (you can use gedit if you know you have it or even vim if you know how to use it).
Currently seems to only work with Mac GPG2 Using this program will not magically keep your passwords secure against compromised computers even if you use it in combination with a smartcard.
It does protect future and changed passwords though against anyone with access to your password store only but not your keys.
You may get an empty text file (you shouldn't), but if you do simply proceed.
If you do not see a line is a file and if it is prints to stdout accordingly. I remember how confused I was when I started all of this stuff (which wasn't too long ago); so, good luck with your future UNIX endeavours!