$pwdir(), $passwddir()
DESCRIPTION
for a given user name, or user id (uid), returns the corresponding home directory
(as recorded in the system passwd file)
SYNOPSIS
$pwdir(s)
$passwddir(s)
or:
$pwdir(i)
$passwddir(i)
ARGUMENTS
s - a quoted string or string expression representing a user name
or:
i - an integer, or integer expression, greater than or equal to zero,
representing a user id (uid)
EXAMPLES
# pikt +C 'output $pwdir("root")'
/root
# pikt +C 'output $pwdir(0)'
/root
rule
set $homedir = $pwdir($inlin)
if ! -d $homedir
output mail "for user $inlin, missing home directory $homedir!"
fi
SEE ALSO
$pwname(), $passwdname()
$pwpassword(), $passwdpassword()
$pwgecos(), $passwdgecos(), $pwcomment(), $passwdcomment()
$pwshell(), $passwdshell()
String Functions
Numerical Functions