I would like to have a script that would change my current working directory. However, any time I execute a 'cd' command in a script, it holds only for the life of that script -- the working directory on exit is the same as when the script was initiated. Is it possible to have the script return with a new working directory set by the script?
In general, the only way I know of to change the environment of a shell by executing a script is the export of variables. Is there any other?