* no $USER when root @ 1997-06-21 19:30 Timothy J. Luoma 1997-06-21 19:37 ` Zoltan Hidvegi 0 siblings, 1 reply; 3+ messages in thread From: Timothy J. Luoma @ 1997-06-21 19:30 UTC (permalink / raw) To: zsh-workers 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. Is this normal? zsh ver = 3.0.2 TjL ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: no $USER when root 1997-06-21 19:30 no $USER when root Timothy J. Luoma @ 1997-06-21 19:37 ` Zoltan Hidvegi 1997-06-22 2:55 ` Stefan Monnier 0 siblings, 1 reply; 3+ messages in thread From: Zoltan Hidvegi @ 1997-06-21 19:37 UTC (permalink / raw) To: luomat; +Cc: zsh-workers > 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. Zoltan ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: no $USER when root 1997-06-21 19:37 ` Zoltan Hidvegi @ 1997-06-22 2:55 ` Stefan Monnier 0 siblings, 0 replies; 3+ messages in thread From: Stefan Monnier @ 1997-06-22 2:55 UTC (permalink / raw) To: zsh-workers Zoltan Hidvegi <hzoli@ny.frontiercomm.net> 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-06-22 2:58 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 1997-06-21 19:30 no $USER when root Timothy J. Luoma 1997-06-21 19:37 ` Zoltan Hidvegi 1997-06-22 2:55 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).