$pwshell(), $passwdshell()
DESCRIPTION
for a given user name, or user id (uid), returns the corresponding login shell
(as recorded in the system passwd file)
SYNOPSIS
$pwshell(s)
$passwdshell(s)
or:
$pwshell(i)
$passwdshell(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 $pwshell("root")'
/bin/bash
# pikt +C 'output $pwshell(0)'
/bin/bash
rule
set $shell = $pwshell($inlin)
if ! -e $shell
output mail "for user $inlin, missing shell $shell!"
fi
SEE ALSO
$pwname(), $passwdname()
$pwpassword(), $passwdpassword()
$pwgecos(), $passwdgecos(), $pwcomment(), $passwdcomment()
$pwdir(), $passwddir()
String Functions
Numerical Functions