delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/22/23:14:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.2.0.9.0.20021123115631.00ad1780@localhost>
X-Sender: nunez AT localhost
Date: Sat, 23 Nov 2002 12:05:01 +0800
To: cygwin AT cygwin DOT com
From: Steve =?iso-8859-1?Q?N=FA=F1ez?= <nunez AT helios DOT net>
Subject: USER environment variable mystery
Mime-Version: 1.0

Hi All,

I've recently spent some time configuring cygwin, and it's mostly gone as 
expected. I say mostly because I've noticed a strange behavior with the 
USER environment variable, and possibly others. I've set this in both 
~/.bashrc and in /etc/profile to be the user name that our UNIX machines 
expect (the surname). The windows 2000 machine I'm using thinks that the 
USER is "firstname lastname". Now after setting these variables in 
~/.bashrc, echo shows that they have been properly set, however both my 
bash prompt and applications such as ssh and xemacs continue to use 
"firstname lastname" (xemacs get's this from "(getenv USER)", making me 
suspect some strangeness in the getenv function).

Does anyone know how to *really* change the environment variables? Is this 
set somewhere deeper in the cygwin structure? I've also tried setting this 
from the cygwin.bat file, but with no success. I'm using a recent version 
of cygwin, downloaded via setup.exe about a week or so ago.

TIA,
	- Steve Nunez



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019