Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: no $USER when root
- X-seq: zsh-workers 3279
- From: Stefan Monnier <monnier+lists/zsh/workers/news/@TEQUILA.SYSTEMSZ.CS.YALE.EDU>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: no $USER when root
- Date: 21 Jun 1997 22:55:39 -0400
- References: <199706211930.PAA26345@xxxxxxxxxxxxx> <199706211937.PAA01789@xxxxxxxxxx>
- Sender: monnier@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Zoltan Hidvegi <hzoli@xxxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author