delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/31/12:13:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 31 May 2010 18:12:43 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: base-files: LOGNAME
Message-ID: <20100531161243.GL16885@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4C021FA8 DOT 4030403 AT users DOT sourceforge DOT net> <AANLkTilUfdSyZF6bVEKHCqImBF62vIu8aV2SNq2cx6xI AT mail DOT gmail DOT com> <0e02511a11473cd99d0035122f0c6dc0 DOT squirrel AT mail DOT morrison DOT mine DOT nu> <4C02AA5A DOT 4050704 AT users DOT sourceforge DOT net> <20100531122208 DOT GH16885 AT calimero DOT vinschen DOT de> <50ac47e545b4562142466c5a3f9b9058 DOT squirrel AT mail DOT morrison DOT mine DOT nu> <20100531155858 DOT GK16885 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20100531155858.GK16885@calimero.vinschen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On May 31 17:58, Corinna Vinschen wrote:
> On May 31 16:18, John Morrison wrote:
> > On Mon, May 31, 2010 1:22 pm, Corinna Vinschen wrote:
> > > On May 30 13:11, Yaakov S wrote:
> > >> On 2010-05-30 04:31, John Morrison wrote:
> > >> >Could we do;
> > >> >
> > >> >LOGNAME=$USERNAME
> > >> >export LOGNAME
> > >> >
> > >> >instead?
> > >>
> > >> I'm not sure those are always equivalent, but I'm no expert on POSIX.
> > >
> > > USERNAME is the Windows username.  LOGNAME should be rather equivalent
> > > to $USER.
> > 
> > If that's true, then we can't do a simple LOGNAME=$USER...
> > 
> > $ echo -e "USERNAME = $USERNAME\nUSER     = $USER\nLOGNAME  = `logname`"
> > USERNAME = John
> > USER     = john
> > LOGNAME  = John
> > 
> > Note the case...
> 
> I don't know where the logname tool is getting the wrong case from.  But
> that still allows to do an `export LOGNAME=$USER'

Btw, tcsh sets LOGNAME to the same value as USER on shell startup,
unless the variables already exist.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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