Re: tlmgr: Use of uninitialized value $str in concatenation (.) or string

Harald Koenig <[email protected]> Sat, 7 Mar 2026 16:26:34 +0100
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
On Mar 07, Luigi Scarso wrote:

> Hi,
> 
> tlmgr info --data "name,category,longdesc,installed" 1>/dev/null
> returns
> Use of uninitialized value $str in concatenation (.) or string at
> <..>/bin/x86_64-linux/tlmgr line 4145.
> 
> $ tlmgr --version
> tlmgr revision 77655 (2026-02-07 16:38:21 +0100)
> tlmgr using installation: <..>
> TeX Live (https://tug.org/texlive) version 2026

looks like a copy/paste typo to me:

--- /usr/local/texlive/2026/texmf-dist/scripts/texlive/tlmgr.pl~        2026-02-07 16:38:21.000000000 +0100
+++ /usr/local/texlive/2026/texmf-dist/scripts/texlive/tlmgr.pl 2026-03-07 16:24:21.859815374 +0100
@@ -4139,7 +4139,7 @@
       }
     } elsif ($d eq "longdesc") {
       my $str = $tlp->longdesc;
-      if (defined $tlp->shortdesc) {
+      if (defined $tlp->longdesc) {
         $str =~ s/"/\\"/g;
         $str =~ s/\n/\\n/g;
         push @out, "\"$str\"";


Harald
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
                                                       \/\/\/\/\/\/\/\/\/
Harald Koenig                                           //  /     \\  \
[email protected]                              ^^^^^       ^^^^^