info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User variable problem


From: CHARLES HART, BLOOMBERG/ 499 PARK
Subject: Re: User variable problem
Date: Mon, 10 Feb 2003 12:23:29 -0500 (EST)

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]