Schlitz writes:
> 
> I am using several administrative files (taginfo, commitinfo et. al.) to
> kick off scripts to perform various kinds of validation.
> In this example, $USER always expands to "cvsuser" in these scripts.  Is
> there any way to determine the login name- for example, I want to determine
> that the current user is "user1" so that I can differentiate between my
> non-system-account cvs users.

The CVS internal variable $USER contains the CVS login name (as opposed
to the $USER environment variable that, as you know, contains the system
user name).  You need to pass that as an explicit argument to your
script.  See the loginfo example in the manual, for example:

        <http://www.cvshome.org/docs/manual/cvs_18.html#SEC170>

Recent versions of CVS also set the $CVS_USER environment variable.  For
further details, see:

        <http://www.cvshome.org/docs/manual/cvs_18.html#SEC176>

-Larry Jones

Kicking dust is the only part of this game we really like. -- Calvin

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

Reply via email to