Rodent of Unusual Size writes:
> 
> A little experimentation reveals something (I find) confusing.
> CVSROOT/loginfo contains a line like this:
> 
>       DEFAULT $CVSROOT/CVSROOT/foo $USER %s
> 
> The Perl CVSROOT/foo script, however, shows different values for
> $ARGV[0] (the $USER above) and $ENV{"USER"} (the actual environment).
> The former is the remote (client) username I want, whilst the
> latter is the local (server) username.

Variable expansion in administrative files like loginfo is completely
separate from the environment.  See "Expansions in administrative files"
in the Cederqvist manual for more details.

-Larry Jones

I won't eat any cereal that doesn't turn the milk purple. -- Calvin

Reply via email to