Hi all,
For some time I have been trying to write a script which requires me to
change to a particular directory, say /abc and when the script exits, to
remain in the said directory, i.e /abc.
However, juast doing a cd /abc as the last executed line does not do the
trick. This probably happens (if i am not wrong) because the script is run
in a separate process with an environment of it's own, so that any change in
the directory changes the PWD (present working dir) of the process & it's
environment, but not the PWD of the original process that called the script.
While I did find aworkaround to the problem in the form of executing the
script with the command :
$source scriptname
but this prevents me from making it into a standalone executable. The same
could also probably be achieved by writing the script as a shell-function,
though I have not tried it.
Could any of you sugest a better workaround?
TIA,
Rajat.
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html