Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!tank!mimsy!eneevax!haven!aplcen!wb3ffv!fallst!tkevans
From: tkevans@fallst.UUCP (Tim Evans)
Newsgroups: comp.unix.xenix
Subject: Re: Finding the user name via the shell
Summary: Not on SCO Xenix 2.2
Keywords: shell variables
Message-ID: <484@fallst.UUCP>
Date: 7 Dec 88 12:10:54 GMT
References: <6323@polyslo.CalPoly.EDU> <249@tfli.UUCP>
Organization: Tim Evans, Fallston, MD
Lines: 16

In article <249@tfli.UUCP>, mikej@tfli.UUCP (Michael R.  Johnston) writes:
> In article <6323@polyslo.CalPoly.EDU> mdella@polyslo.CalPoly.EDU (Marcos R. Della) writes:
> >... how to determine the users login name
> 
> The correct answer is to use the variable $LOGNAME.

Although the $LOGNAME variable is supported generally on System V *NIX, SCO
Xenix 2.2 does _not_ support it.  Rather, as I and others have noted here
previously, the Xenix _command_ 'logname' (note lowercase) returns the 
user's login name.

-- 
UUCP:  ...!{rutgers|ames|uunet}!mimsy!aplcen!wb3ffv!fallst!tkevans
INTERNET:  tkevans%fallst@wb3ffv.ampr.org
OTHER: ...!attmail!fallst!tkevans
Tim Evans  2201 Brookhaven Court, Fallston, MD  21047   (301) 965-3286