Undesirable nul file with tlmgr.bat under Windows

Norbert Preining preining at logic.at
Wed Jul 17 04:21:14 CEST 2019


Hi Torsten, 

sorry for the long silence.

> Yes. nul file created. -rw-rw-r--+ 1 schuetze None 9189 Oct 29  2016 nul

Hmm, so this should come from the following code in TLUtils.pm:
  my $cmd = "$wget $mirror/ --timeout=$NetworkTimeout -O "
            . (win32() ? "nul" : "/dev/null")
            . " 2>" . (win32() ? "nul" : "/dev/null");

Where $wget = "wget" and win32() checks $^0 for /^MSWin/i
So in your case, as it returns cygwin, it shoud expand to
	wget .../ --timeout=... -O /dev/null 2>/dev/null
and no "nul" file should be created ... very strange.

Can you please **edit** TLUtils.pm (in TLROOT/tlpkg/TeXLive/)
and around line 3775 add the following printf so that it looks like
this:
  my $cmd = "$wget $mirror/ --timeout=$NetworkTimeout -O "
            . (win32() ? "nul" : "/dev/null")
            . " 2>" . (win32() ? "nul" : "/dev/null");
  print STDERR "DEBUG cmd = $cmd\n";           ####### ADDED LINE !!!!
  my $ret = system($cmd);
Then run again with the nul creating invocation and show us the output
line starting with 
	DEBUG
Thanks a lot

Best

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the tex-live mailing list