develooper Front page | perl.perl5.porters | Postings from January 2006

Re: [DOC PATCH] $^X isn't necessarily argv[0]

Thread Previous | Thread Next
From:
Gisle Aas
Date:
January 30, 2006 04:11
Subject:
Re: [DOC PATCH] $^X isn't necessarily argv[0]
Message ID:
lrd5i9zzke.fsf@caliper.activestate.com
Nicholas Clark <nick@ccl4.org> writes:

> My only reservation is it's not called that on FreeBSD or Solaris.

I didn't know that Solaris had such a file, but when I looked closer
at our new Solaris 10 system I actually found one:

  $ ls -l /proc/self/path/a.out
  lrwxrwxrwx   1 gisle    other          0 Jan 30 04:01 /proc/self/path/a.out -> /usr/bin/ls

Configure does not seem to probe for this one.  Is this one useable?

Earlier we have tried to extract this path from /proc/self/auxv, but
that didn't quite work out:

  http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2001-11/msg01559.html

--Gisle

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About