NAME
Chj::xhome
SYNOPSIS
DESCRIPTION
Get the user's home directory in a safe manner.
- xHOME ()
-
Just the $HOME env var, dieing if not set, and also checked against a couple assertments.
In taint mode, is tainted.
- xeffectiveuserhome ()
-
Just the getpwuid setting. Throws unimplemented exception on Windows (Raspberry, not Cygwin Perl).
Is not tainted.
- xsafehome ()
-
Always take xeffectiveuserhome (unless on Windows, in which case this is currently the same as xhome), but is asserting that HOME is the same if set.
Is untainted except on Windows where it's tainted.
- xhome ()
-
Tries $ENV{HOME} then glob "~" if exists (with assertments), otherwise xeffectiveuserhome.
In taint mode, can be (and usually is) tainted.
NOTE
This is alpha software! Read the status section in the package README or on the website.