On Sat, Apr 15, 2006 at 04:56:28PM +0200, Georg Baum wrote:

> Am Freitag, 14. April 2006 20:56 schrieb Enrico Forestieri:
> > I added a comment and also took into account a fix for the separator
> > in lib/scripts/TeXFiles.sh. Here SEP is set to ';' or ':' simply based
> > on the existence or not of the environment variable COMSPEC.
> > But the cygwin tetex uses ':' and COMSPEC is set, as the Windows
> > environment in inherited. The fix is quite simple and effective,
> > I think, as, instead of guessing, it now ascertains what the correct
> > separator is.
> 
> I committed the original change. I left out the path separator fix, since 
> I don't understand how it works (using kpsewhich to get the path 
> separator that is needed for kpsewhich looks like pulling yourself with 
> your own hair out of the marsh as we say here). Please discuss this with 
> somebody else.

Thanks Georg.

$ kpsewhich --show-path=.tex
.;C:/texmf/tex/plain//;C:/texmf/tex/generic//C:/texmf/tex//

This is a kpsewhich using ';' as path separator.

$ kpsewhich --show-path=.tex
.:!!/usr/share/texmf-local/tex/generic//:!!/usr/share/texmf/tex/generic//:/home/ef/texmf/tex///:!!/usr/share/texmf-local/tex///:!!/usr/share/texmf/tex///

This is a kpsewhich using ':' as path separator.

So, you look for ';' in the output and if it is there SEP=';',
otherwise SEP=':'. Can't fail.

Thanks, anyway.

-- 
Enrico

Reply via email to