>> I'm logged in to my Win XP machine as, e.g., DOMAIN\someUser, but
>> "id -un" from any Cygwin bash shell returns "Administrator".
>> Is this wrong, or am I missing something? Shouldn't it return
I think it should. I my account name when logged on to my W98.
Quote:>If you check your environment variables, I'll be you'll see one
>named USER and one named USERNAME. And I guess "id -un" gets the
>username from the wrong variable.
At least on unix side, id doesn't rely on the environment; it uses the
OS calls (which also don't rely on the environment variables). I don't
know what would be the corresponding Win32 calls, and whether or not
they rely on the environment variables.
Also, id is a standalone program, and not dependent on bash, so bash has
no function here.
Wolf a.k.a. Juha Laiho Espoo, Finland
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)