On Thu, Sep 20, 2001 at 01:35:25AM +1000, Peter Hardy uttered:
> grep $HOME /etc/passwd | awk -F : '{ readline; print $1 }'
> 
> Consider the gauntlet thrown.
> 
Hang on, I'll get it, and throw it back.

steven@broken:~$ grep $HOME /etc/passwd | awk -F : '{ readline; print $1 }'
steven@broken:~$

But, I use LDAP for auth. :-)

steven@broken:~$ echo $USER
steven

Should be more than sufficient, given a non-brain dead shell like bash or zsh.

-- 
                                                    Steve
<Overfiend> xhost +localhost should only be done by people who would
            paint their hostname and root password on an interstate
            overpass.

PGP signature

Reply via email to