Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: no $USER when root



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