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

[MacPerl] When is ENV{USER} set? (was Re: Three questions)



>Unless you've changed it, $ENV{USER} is set to the owner name.
I haven't changed $ENV{USER}, but on some Macs in the office it
returns the correct value (the same name as in the "Sharing Setup"
control panel in System 7.5.x, or the "File Sharing" control panel
in System 8.0; and in the System file 'STR ' resource -16096), and
on others it does not. I tried a couple of quick experiments to
narrow down the problem, but didn't aleviate my confusion much:
1) On a machine for which $ENV{USER} returned what I expected,
   I changed the name via the control panel. Even after rebooting
   the Mac, MacPerl still reported the old name.
2) On a machine on which $ENV{USER} was returning the wrong info
   (and what I believe to have been a previous user name on this
   comoputer) I tried re-installing MacPerl from scratch. $ENV{USER}
   was still the wrong value, the old name.
So the question is, when does $ENV{USER} get set? How does one get it
to return the *current* user name?
I'm using MacPerl 5.1.9r4 on a variety of PowerMacs and clones.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch