X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <50ac47e545b4562142466c5a3f9b9058.squirrel@mail.morrison.mine.nu>
In-Reply-To: <20100531122208.GH16885@calimero.vinschen.de>
References: <4C021FA8.4030403@users.sourceforge.net>    <AANLkTilUfdSyZF6bVEKHCqImBF62vIu8aV2SNq2cx6xI@mail.gmail.com>    <0e02511a11473cd99d0035122f0c6dc0.squirrel@mail.morrison.mine.nu>    <4C02AA5A.4050704@users.sourceforge.net>    <20100531122208.GH16885@calimero.vinschen.de>
Date: Mon, 31 May 2010 16:18:26 +0100
Subject: Re: base-files: LOGNAME
From: "John Morrison" <john@morrison.mine.nu>
To: cygwin@cygwin.com
User-Agent: SquirrelMail/1.4.20
MIME-Version: 1.0
Content-Type: text/plain;charset=UTF-8
Content-Transfer-Encoding: 8bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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...

J.


--
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

