(fwd) Re: [l2h] 2 bugs in l2h

Roman Semizarov Roman Semizarov" <roma7@RS1746.spb.edu
Mon, 4 Dec 2000 18:28:48 +0300 (MSK)


To: ross@ics.mq.edu.au, late2html@tug.org
References: <200012041256.XAA22885@hera.mpce.mq.edu.au>
Message-Id: <2.07b5.K9T4.G51RZ8@RS1746.spb.edu>
Organization: Home Computer
From: "Roman Semizarov" <roma7@RS1746.spb.edu>
Date: Mon,  4 Dec 2000 17:23:32 +0300 (MSK)
X-Mailer: dMail [Demos Mail for DOS v2.07b5]
Subject: Re: [l2h] 2 bugs in l2h
Lines: 47
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> e.g. (in config.pl)

>   foreach $try (@try_opts) {
>     my ($stat,$out,$err) = &get_out_err("\"'$kpsewhich'\" $try");
>                                          ^^^          ^^^

>> >> The reason is that when we give $cmd to redir.pl, quotes disapear,

> ... yes, but not *both* sets of quotes, in the line above.

I makes redir.pl to produces the incorrect call

   'c:\program files\...' opts..

This type of quotes does not understandable by Windows.

But the variant

     my ($stat,$out,$err) = &get_out_err("\\\"$kpsewhich\\\" $try");

is OK.

The corresponding call of redir.pl will be

   perl redir.pl "\"c:\program files\...\"" opt

and ARGV[0] will be '"c:\..."'


> The problem is that some tests legitimately have an argument,
> which comes as part of $ARGV[0] .

How can it be? $ARGV[0] in redir.pl is the first word of the command
line, it can be only the name of program, isn't it?


>> By the by, I understood, that one can temporarily spile up it
>> by specifying $abs_path_names=0. It works, if $extrapath is not used.

> If that works, then fine; use it by all means.  However, I think that
> moving
> the TeX installation is probably a more reliable fix.

It was the first thing I'v done. :)

Roman