useradd -c in a script????

Here's my box info:

ROOT@fcivra: uname -a
SunOS fcivra 5.6 Generic_105181-26 sun4m sparc SUNW,SPARCstation-5

I am creating a script called adduser, that will incorporate the useradd command. Here is what it looks like:

#!/bin/sh
echo "Enter the person's VZID (lower case): \c"
read VZID
echo "Enter the person's name: \c"
read NAME
useradd -g 101 -c $NAME -d /opt/home/$VZID -m $VZID

Looks easy, right?? However, it fails because of the -c $NAME.

Am I doing something wrong??

Thanks,

-cd

Try: -c "$NAME"

That did it. I had tried `$NAME` and '$NAME', but had forgotten to try "$NAME". Thanks for the quick help.

-cd