There's a shell setting that makes it complain when you use an undefined value.
(But I don't recall what it is).  If you are using ksh, you can use
${parameter:-word} to substitute "word" in place of "parameter" if parameter
isn't defined.

DEFAULT /serv/CVSROOT/commitcheck ${COMMITCODE:-JUNK}

Then, in your script, if $1 == Junk, then you know the user left it off.

-CTH





_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to