Comment 1 for bug 332331

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Actually, this is impossible to "solve" within shell:
 * http://www.faqs.org/faqs/unix-faq/faq/part2/section-8.html

A given shell script can't actually affect the working directory of the calling shell.

Thus, we're going to have to solve this with an informative info message. Check if the current directory matches that of the directory just mounted. If so, tell the user to run:
 $ cd $PWD

:-Dustin