logo       

Re: AutoLoader and '+~': msg#00037

Subject: Re: AutoLoader and '+~'
I think I figured it out. expand_path uses the perl function getlogin() to expand the username. getlogin is not guaranteed to return true, and this depends on the system. So on some systems (mine, for example), we need to use getpwuid instead. It's an easy patch, I'll do it tonight.

Derek

Derek Lamb wrote:

Today I noticed that on my Linux work computers running Perl 5.8.5 and 5.8.6, the following produced a listing of the subdirectories of my home directory:

$ perl -e 'use PDL::AutoLoader; print join " ", PDL::AutoLoader::expand_path("+~");'

But on my Linux home computer running Perl 5.8.8, it produced no output. Manually substituting /home/derek for the ~ produced the desired output. Why would tilde expansion work on one system and not another? All machines are running PDL 2.4.3. I looked through the "man perldelta"s and found no incompatibility changes. '$ cd ~' works from within my bash shell, so I don't think that's an issue. I don't think it's a PDL issue, but rather think that it has to do with my local configuration (which isn't tweaked in any way from the stock Mandriva configuration). Any ideas?

thanks,
Derek

_______________________________________________
Perldl mailing list
Perldl@xxxxxxxxxxxxxxx
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe