[KLUG Members] calling functions from the shell

Bruce Smith members@kalamazoolinux.org
09 Dec 2002 16:51:15 -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?

To be safe I'd put them in double quotes (NOT single quotes!!!).

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

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------