class SysInfo
def getpwattr(pwattr)
As an example, `getpwdattr(:home)` will return the user's home directory
Returns a named attribute of the user's /etc/password entry, or nil.
def getpwattr(pwattr) passwd = Etc.getpwuid(Process::Sys.getuid) || {} passwd[pwattr] end