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
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
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
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