From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8168 invoked from network); 22 Jun 1997 02:58:46 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 22 Jun 1997 02:58:46 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id WAA24620; Sat, 21 Jun 1997 22:51:37 -0400 (EDT) Resent-Date: Sat, 21 Jun 1997 22:51:37 -0400 (EDT) To: zsh-workers@math.gatech.edu Sender: monnier@TEQUILA.SYSTEMSZ.CS.YALE.EDU From: Stefan Monnier Newsgroups: lists.zsh.workers Subject: Re: no $USER when root References: <199706211930.PAA26345@kira.peak.org> <199706211937.PAA01789@hzoli.home> Date: 21 Jun 1997 22:55:39 -0400 Message-ID: <5len9vtkgk.fsf@tequila.systemsz.cs.yale.edu> X-Newsreader: Gnus v5.3/Emacs 19.34 Path: tequila.systemsz.cs.yale.edu NNTP-Posting-Host: tequila.systemsz.cs.yale.edu Resent-Message-ID: <"TjV6u2.0.d06.vC9hp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3279 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zoltan Hidvegi writes: > > Sorry is this is old news to you all, but I just realized that when I am > > logged in as root there is no $USER variable set. > USER is not set by zsh, it should be set by login or su or xdm or whatever. Also, IIRC, the official POSIX envvar for that is LOGNAME rather than USER. Or am I blowing hot air ? Stefan