Originally Posted by Tinkster
Not sure what that was a reference to ... I'm referring
to the fact that this thread is from 2005; it died, got
re-animated in August 2009, died, and got dug up again in
August this year.
I don't understand what the moderators have against people bringing up old threads. If Google returns this forum thread for a query for a common problem, it shouldn't matter how old the last post was, as long as it is still relevant.
On topic: I was having the same problem using source and export in a bash file, and the leading dot makes it so I the environmental variables appear in the command line after the script finishes. I would like to see someone demonstrate the use of functions though, so I have a second way of fixing the problem should it arise again. If anyone is inclined to include such a demo, I (and all the others who come upon this thread after me) would be very grateful.