Re: [PLUG] Shell script problem

2007-08-05 Thread Vaibhav Kulkarni
On 8/5/07, Vaibhav Kulkarni <[EMAIL PROTECTED]> wrote: > Try sourcing your script. Oh, I forgot to mention the reason why it doesn't work in your case. When you run your script, a sub-shell is created, which cd's into that particular directory. When the script is done, the sub-shell exits and you

Re: [PLUG] Shell script problem

2007-08-05 Thread Vaibhav Kulkarni
On 8/4/07, Sushant Bhadkamkar <[EMAIL PROTECTED]> wrote: > This did create a directory but I wasn't taken to it.After a bit of > experimenting I found out that adding /bin/sh at the end (ie opening any > subshell) does the work. > My question is why does the script work this way?Is there any other

Re: [PLUG] Shell script problem

2007-08-04 Thread श्रीधर नारायण दैठणकर
On Saturday 04 Aug 2007 12:13:08 Sushant Bhadkamkar wrote: > Hi all, > Yesterday I was writing a simple script which when run, would create a > directory with today's date and then would take you to the created > dir.Atfirst I thought it will be easy but the 'finding yourself in the > new > directo

[PLUG] Shell script problem

2007-08-03 Thread Sushant Bhadkamkar
Hi all, Yesterday I was writing a simple script which when run, would create a directory with today's date and then would take you to the created dir.Atfirst I thought it will be easy but the 'finding yourself in the new directory after running the script' part didn't work out.The script I wrote is