[tex-live] Bug in texdoc.tlu

Philipp Stephani st_philipp at yahoo.de
Sat Oct 17 22:26:27 CEST 2009


Hello,

a bug in texdoc.tlu causes texdoc to fail to open multiple files given  
as arguments:

~ $ texdoc -d usrguide fntguide
...
*** Results for: usrguide ***
texdoc debug1: open "/usr/local/texlive/2009/texmf-dist/doc/latex/base/ 
usrguide.pdf"
*** Results for: fntguide ***
texdoc debug1: open "/usr/local/texlive/2009/texmf-dist/doc/latex/base/ 
usrguide.pdf"

Explanation: the function how_to_view fails to initialize the global  
variable viewext, then in the second iteration a wrong branch is taken  
and the global variable viewer_replacement is not changed. The patch  
in the attachment fixes this. However, you should consider using local  
variables instead! (I have no experience at all in Lua, but all those  
global variables in the script would drive me mad.)

Regards,
Philipp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texdoc.patch
Type: application/octet-stream
Size: 527 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20091017/0217f681/attachment.obj>


More information about the tex-live mailing list