Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!prls!philabs!phri!marob!daveh
From: daveh@marob.MASA.COM (Dave Hammond)
Newsgroups: comp.unix.xenix
Subject: Re: Finding the user name via the shell
Keywords: shell variables
Message-ID: <411@marob.MASA.COM>
Date: 5 Dec 88 13:16:51 GMT
References: <6323@polyslo.CalPoly.EDU> <481@fallst.UUCP>
Reply-To: daveh@marob.masa.com (Dave Hammond)
Organization: ESCC  New York City
Lines: 20

In article <481@fallst.UUCP> tkevans@fallst.UUCP (Tim Evans) writes:
>following example:
>
>	#get long listing of $HOME directory and mail to me
>	ls -l $HOME | mail `logname`
>
>Other System V *NIX's support the environmental variable $LOGNAME, but Xenix
>don't!

If you place the line:

LOGNAME=`logname`; export LOGNAME

in /etc/profile, then Xenix supports the LOGNAME variable.  This works
for the Bourne and Korn shells.  I'm not a csh'er but I suspect there's
a similar systemwide login commands file.

--
Dave Hammond
...!uunet!masa.com!{marob,dsix2}!daveh