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
Larry Jones wrote:
Variable expansion in administrative files like loginfo is completely
separate from the environment.
So I discovered. The overloading of expansion syntax and names
is hardly optimal when the meanings aren't identical, though, IMHO.
(That is, having $USER expand to one
Rodent of Unusual Size writes:
As I understand it, the USER variable is set to the username of
the server-local user actually accessing the repository. In the
case of a pserver-accessed repository, with usernames mapped
through the CVSROOT/passwd file mechanism, this will typically
be the
Rodent of Unusual Size writes:
Um, no -- the manual is WRONG in this case. It says that USER
is expanded to the username running the server. Wrong-o -- that's
the meaning in the environment. In the admin expansion, USER is
the username of the *client* (at least in a pserver/passwd
Rodent of Unusual Size wrote:
As I understand it, the USER variable is set to the username of
the server-local user actually accessing the repository. In the
case of a pserver-accessed repository, with usernames mapped
through the CVSROOT/passwd file mechanism, this will typically
be the
Rodent of Unusual Size wrote:
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.
It looks as though