[tex-live] uninitialized variable $firstline in TLUtils.pm

Ulf-Dietrich Braumann braumann at uni-leipzig.de
Sat Oct 20 18:08:30 CEST 2012

Salut Norbert, if you happen to have some time, maybe you can work around 
that Cygwin peculiarity to return undef if a file exists (this was your 
finding some time ago), but is empty (see the effect below), thanks again 
- UD

%tlmgr update -all
tlmgr: package repository 
tlmgr: saving backups to /usr/local/texlive/2012/tlpkg/backups
[1/4, ??:??/??:??] update: boxhandler [346k] (21451 -> 28031) ... done
[2/4, 00:14/00:50] update: m-tx [325k] (26726 -> 28032) ... done
[3/4, 00:27/00:49] update: tetex [376k] (27932 -> 28033) ... done
[4/4, 00:41/00:48] update: texlive-docindex [192k] (28009 -> 28026) ... 
tlmgr: package log updated at /usr/local/texlive/2012/texmf-var/web2c/tlmgr.log
running mktexlsr ...
done running mktexlsr.
running mtxrun --generate ...
done running mtxrun --generate.
Use of uninitialized value $firstline in chomp at /usr/local/texlive/2012/tlpkg/TeXLive/TLUtils.pm line 2695.
Use of uninitialized value $firstline in pattern match (m//) at /usr/local/texlive/2012/tlpkg/TeXLive/TLUtils.pm line 2698.
running updmap-sys ...
done running updmap-sys.

On Wed, 19 Sep 2012, Norbert Preining wrote:

> On Mi, 19 Sep 2012, Ulf-Dietrich Braumann wrote:
>> well the file /usr/local/texlive/2012/texmf-config/web2c/updmap.cfg 
>> exists, but indeed is empty on my Cygwin based installation. I do not 
>> know what it means to have this particular file empty.
> As said in my second email, it seems to be a peculiarity of cygwin, that 
> wen I read from an empty file nothing is returned (undef), instead of 
> the empty string. Anyway, in one way or the other I will cater to that.
> No need to test anything anymore. Thanks.
> Best wishes
> Norbert

More information about the tex-live mailing list