On Tue, Dec 29, 2009 at 1:05 PM, Varrun Ramani <[email protected]> wrote:
> When i run it, the directory of my terminal does *not* change i guess
> because a child process cannot pass arguments to a parent process.
> Is there any other way i can do this?
>
Instead of running it as
$ ./script
or
$ sh ./script
try
$ source ./script
or
$ . ./script

This might be a hack, so look around for better solutions.

> Also, why does it show an error when i change
> DIRECTORY="~/Desktop/TODO/Final_yr_project"
>
Maybe ~ isn't expanded in scripts?

-- 
Roshan Mathews
http://teamtalk.im
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to