Valeri Galtsev <galt...@kicp.uchicago.edu> wrote:

>
> ########
> #!/bin/sh
>
> readlink /proc/$$/file
> ########
>
> ( note that that "file" is because I'm using FreeBSD /proc, for Linux you
> may need to replace the line with something like:
>
> readlink /proc/$$/exe

And on a platform that implements a correct procfs-2, you should look at:

        /proc/self/path/a.out
or
        /proc/$$/path/a.out

This seems to be unknown e.g. to people from the FSF, so many autoconf tests 
are wrong.

Jörg

-- 
 EMail:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to