perfsonar-dev - Re: [pS-dev] perfsonar: r3702 - branches/rpm
Subject: perfsonar development work
List archive
- From: Ralf Kleineisel <>
- To:
- Subject: Re: [pS-dev] perfsonar: r3702 - branches/rpm
- Date: Wed, 16 Apr 2008 15:28:27 +0200
wrote:
> - open( RPMMACROS, "> ~/.rpmmacros") or die "There was a problem opening
> the file ~/.rpmmacros for writing.";
> + my $homedir = `echo ~`; # workaround for Ubuntu (and maybe others)
> ~/.rpmmacros bug
This will only work if the shell that happens to run the echo expands "~".
The IMHO best way in perl would be:
my @pwuid = getpwuid($<);
my $homedir = $pwuid[7];
or $ENV{HOME} on Unixoid systems.
- perfsonar: r3702 - branches/rpm, svnlog, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Ralf Kleineisel, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Guilherme Fernandes, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Ralf Kleineisel, 04/16/2008
Archive powered by MHonArc 2.6.16.