Function: eshell-user-name
eshell-user-name is a function alias for user-login-name(var)/user-login-name(fun), defined in
editfns.c.
This function is obsolete since 28.1; use user-login-name(var)/user-login-name(fun) instead.
Signature
(eshell-user-name &optional UID)
Documentation
Return the name under which the user logged in, as a string.
This is based on the effective uid, not the real uid. Also, if the environment variables LOGNAME or USER are set, that determines the value of this function.
If optional argument UID is an integer, return the login name of the user with that uid, or nil if there is no such user.
Aliases
user-original-login-name (obsolete since 28.1)
eshell-user-name (obsolete since 28.1)