[KLUG Members] calling functions from the shell

bill members@kalamazoolinux.org
Mon, 09 Dec 2002 16:39:12 -0500


Actually, it was a problem with spaces.  Instead of

            REMOTE= $1
            SHARE= $2
            DEST= $3

I needed to do

            REMOTE=$1
            SHARE=$2
            DEST=$3

What's the scoop with that?  Do I need to use quotes?

Daniel wrote:

> What directory is this in?
>
> Is the directory in your path? If not, you need to do ./CopyWinHost one two three
>
> bill extolled:
> >
> >
> > Bruce Smith wrote:
> >
> > > > If I create the following file and mark it executable how would I call the
> > > > function?
> > > >
> > > >
> > >
> > > CopyWinHost one two three
> >
> > I keep getting
> >
> > one: command not found
> > two: command not found
> > three: command not found
> >
> >
> >
> > _______________________________________________
> > Members mailing list
> > Members@kalamazoolinux.org
> > 
>
> --
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> |            Daniel           |
> |      drk@netophilia.net     |
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
>