[PLUG] Shell script problem
Vaibhav Kulkarni
netvaibhav at gmail.com
Sun Aug 5 18:15:19 IST 2007
On 8/4/07, Sushant Bhadkamkar <mailsushant at gmail.com> 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 way to
> do this?
Try sourcing your script. Assuming script name to be date-dir.sh, try this--
. date-dir.sh
or
source date-dir.sh
Hope that helps.
--
Vaibhav
More information about the Plug-mail
mailing list