Bug#334840: tetex-doc: shell variables should be quoted in /usr/bin/index-tetexdoc
Package: tetex-doc
Version: 3.0-9
Severity: important
Hi,
here is the problem:
Setting up tetex-doc (3.0-9) ...
mktexlsr: Updating /var/lib/texmf/ls-R-LOCAL...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN...
mktexlsr: Updating /var/cache/fonts/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
/usr/bin/index-tetexdoc: line 54: test: too many arguments
/usr/bin/index-tetexdoc: line 54: test: pages_perso/bonnaud/foo: binary operator expected
/usr/bin/index-tetexdoc: line 43: test: public-lis/Pour: binary operator expected
It comes from the fact that index-tetexdoc uses unquoted shell
variables. To fix the problem, all instances of $i, $j and $k should
be replaced by "$i", "$j" and "$k".
BTW, on this system, /pages_perso/ and /public-lis/ are NFS mounted
directories and IMHO index-tetexdoc should not look into them.
Therefore, I suggest to replace:
for i in *; do
with:
for i in usr; do
or whatever list of directories index-tetexdoc needs to visit.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (100, 'unstable'), (99, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-1-686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Versions of packages tetex-doc depends on:
ii dpkg 1.13.11.0.1 package maintenance system for Deb
Versions of packages tetex-doc recommends:
ii acroread [pdf-vie 7.0.1-0.0 Adobe Acrobat Reader: Portable Doc
ii amaya [www-browse 8.5-1.1 Web Browser, HTML Editor and Testb
ii chimera2 [www-bro 2.0a19-4 Web browser for X
ii dillo [www-browse 0.8.5-1.0.1 GTK-based web browser
ii elinks [www-brows 0.10.6-1 advanced text-mode WWW browser
ii elvis [www-browse 2.2.0-3 powerful clone of the vi/ex text e
ii epiphany-browser 1.6.5-2 Intuitive GNOME web browser
ii evince [postscrip 0.4.0-1 Document (postscript, pdf) viewer
ii galeon [www-brows 1.3.21-8 GNOME web browser for advanced use
ii gnome-gv [postscr 1:2.8.5-2 GNOME PostScript viewer
ii gpdf [pdf-viewer] 2.8.2-1.3 Portable Document Format (PDF) vie
ii gs-esp [postscrip 8+8.15rc4.dfsg.1-2.1 The Ghostscript PostScript interpr
ii gs-gpl [postscrip 8.15-4 The GPL Ghostscript PostScript int
ii gv [pdf-viewer] 1:3.6.1-12 PostScript and PDF viewer for X
ii kghostview [pdf-v 4:3.4.3-1 PostScript viewer for KDE
ii konqueror [www-br 4:3.4.3-2 KDE's advanced file manager, web b
ii kpdf [pdf-viewer] 4:3.4.3-1 PDF viewer for KDE
ii links [www-browse 0.99+1.00pre12-1 Character mode WWW browser
ii links2 [www-brows 2.1pre18-2 Web browser running in both graphi
ii lynx [www-browser 2.8.5-2 Text-mode WWW Browser
ii mozilla-browser [ 2:1.7.12-1 The Mozilla Internet application s
ii mozilla-firefox [ 1.4.99+1.5beta2.dfsg-1 lightweight web browser based on M
ii tetex-bin 3.0-7 The teTeX binary files
ii w3-el-e21 [www-br 4.0pre.2001.10.27-17 Web browser for GNU Emacs 21
ii w3m [www-browser] 0.5.1-4 WWW browsable pager with excellent
ii xemacs21-gnome-mu 21.4.17-2 highly customizable text editor --
ii xemacs21-gnome-no 21.4.17-2 highly customizable text editor --
ii xemacs21-mule [ww 21.4.17-2 highly customizable text editor --
ii xemacs21-nomule [ 21.4.17-2 highly customizable text editor --
ii xpdf 3.01-2 Portable Document Format (PDF) sui
ii xpdf-reader [pdf- 3.01-2 Portable Document Format (PDF) sui
ii xpdf-utils [pdf-v 3.01-2 Portable Document Format (PDF) sui
-- no debconf information
Reply to: