[tex-live] bug(?) of tlmgr

Reinhard Kotucha reinhard.kotucha at web.de
Tue Dec 23 06:18:03 CET 2008


Karl Berry writes:
 >     Changing scriptdir to empty string in Config.pm resulted in:
 > 
 > I think you have to change that to the real scriptdir, not the empty string.
 > 
 > Meanwhile, I have deleted tlperl/bin/perldoc.bat.  So at least now we
 > should back to the point where only people with the other Perl installed
 > are affected.  If I'm following this right.

Well, I fear that perldoc.bat isn't the culprit at all.  Since this
little batch file doesn't change the environment, it doesn't matter
whether it's found in tlperl or any other Perl distribution.

It seems that removing the file is not enough.  Let's assume that this
problem occurs on Windows only. Then 

  if ($opt_help) {
    if (TeXLive::TLUtils::which("perldoc")) {
      pod2usage(-exitstatus => 0, -verbose => 2);
    } else {
      pod2usage(-exitstatus => 0, -verbose => 2, -noperldoc => 1);
    }
  }

should probably better be replaced by something like:

  if ($opt_help) {
    if (win32) {
      pod2usage(-exitstatus => 0, -verbose => 2, -noperldoc => 1);
    } else {
      if (TeXLive::TLUtils::which("perldoc")) {
        pod2usage(-exitstatus => 0, -verbose => 2);
      } else {
        pod2usage(-exitstatus => 0, -verbose => 2, -noperldoc => 1);
      }
    }
  }
    
Not a nice solution but I think that Windows users are hardened enough
in order to deal with this inconvenience.

It seems that there is a severe bug in Perl, though.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the tex-live mailing list