Kill some tab characters; and adopt PBP-suggested formatting for :? operator.
This commit is contained in:
parent
b153c0ab99
commit
48bd0f3e0c
@ -9,11 +9,10 @@ sub new {
|
|||||||
|
|
||||||
sub tildeexp {
|
sub tildeexp {
|
||||||
my ($self, $path) = @_;
|
my ($self, $path) = @_;
|
||||||
$path =~ s{^~([^/]*)} {
|
$path =~ s{^~([^/]*)} {
|
||||||
$1
|
$1 ? (getpwnam($1))[7]
|
||||||
? (getpwnam($1))[7]
|
: ( $ENV{HOME} || $ENV{LOGDIR} || (getpwuid($>))[7])
|
||||||
: ( $ENV{HOME} || $ENV{LOGDIR} || (getpwuid($>))[7])
|
}ex;
|
||||||
}ex;
|
|
||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user