Strange kpsewhich behaviour

Christoph Bartoschek <[email protected]>
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
Hi, 

I'm using a selfcompiled teTeX 3.0.
I have a problem, that kpsewhich seems not to work inside of kdvi. I made a 
testcase which shows the problem. When I issue

kpsewhich --format=dvips config ps2pk.map

in the command line, I get as a result:

/usr/local/teTeX/share/texmf-var/fonts/map/dvips/updmap/ps2pk.map

But when I compile and run the following programm:

#include <unistd.h>

int main()
{
        execlp(  "kpsewhich", "kpsewhich", "--format=dvips config", 
"ps2pk.map", 0);
        return 0;
}

I get nothing at all. You can see differences by using strace on the 
testprogramm and on kpsewhich itself.


I'm sure that the programm should work because I tried both cases on an SuSe 
9.1 default installation of teTeX and both times I got:

/var/lib/texmf/dvips/config/ps2pk.map

Does anyone know why the newer kpsewhich does not return anything when run  
from another program?

Yours sincerely,
Christoph Bartoschek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.