the problem was sloved!
On Tue, 8 Nov 2011 21:40:35 +0100, Simon Paillard wrote
> On Wed, Sep 07, 2011 at 10:06:18AM +0800, ftpadm wrote:
> > On Tue, 6 Sep 2011 21:18:33 +0200, Simon Paillard wrote
> > > On Tue, Sep 06, 2011 at 10:56:18PM +0800, ftpadm wrote:
> > > > When I use ftpsync, I have a
> > problem. I edited the ftpsync.conf, then
> > > > executed the bin/ftpsync, but the script show the following
> > > > message,"bin/ftpsync: ${BASH_VERSINFO[...}: Bad substitution". My
Operating
> > > > System is FreeBSD, using tcsh. But, I created a user with Bash. The
user with
> > > > Bash to execute bin/ftpsync, then I have the same problem.
> > >
> > > There is no need to have bash as default shell, just to have it
installed.
> > >
> > > What gives you the following command ?
> > > /bin/bash --version 2>/dev/null
> > the following message display when I executed the above command.
> >
> > GNU bash, version 4.1.11(1)-release (i386-portbld-freebsd8.2)
>
> What gives:
> bash
> "echo ${BASH_VERSINFO[0]}"
>
> this line fails on your system, for a unknown reason.
>
> --
> Simon Paillard
========================
靜宜大學資訊學院主機房
主顧樓302室
Tel:04-26328001 ext.18005
E-mail:[email protected]
========================
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]