[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#334840: marked as done (tetex-doc: shell variables should be quoted in /usr/bin/index-tetexdoc)



Your message dated Thu, 20 Oct 2005 11:15:48 +0200
with message-id <87wtk84khn.fsf@alhambra.kuesterei.ch>
and subject line Bug#334840: tetex-doc: shell variables should be quoted in /usr/bin/index-tetexdoc
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 20 Oct 2005 07:45:31 +0000
>From bonnaud@lis.inpg.fr Thu Oct 20 00:45:31 2005
Return-path: <bonnaud@lis.inpg.fr>
Received: from bal.lis.inpg.fr [195.220.21.15] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1ESV7C-0000D7-00; Thu, 20 Oct 2005 00:45:30 -0700
Received: from smtpc.lis.inpg.Fr (smtpc.lis.inpg.fr [195.220.21.17])
	by bal.lis.inpg.fr (Postfix) with ESMTP id 032E53067C2;
	Thu, 20 Oct 2005 09:44:57 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by smtpc.lis.inpg.Fr (Postfix) with ESMTP id B4E442C811E;
	Thu, 20 Oct 2005 09:44:57 +0200 (CEST)
Received: from smtpc.lis.inpg.Fr ([127.0.0.1])
	by localhost (smtpc.lis.inpg.fr [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 32663-07; Thu, 20 Oct 2005 09:44:53 +0200 (CEST)
Received: from irancy.lis.inpg.fr (irancy.lis.inpg.fr [195.220.21.167])
	by smtpc.lis.inpg.Fr (Postfix) with SMTP id AA3AF2C811C;
	Thu, 20 Oct 2005 09:44:52 +0200 (CEST)
Received: by irancy.lis.inpg.fr (sSMTP sendmail emulation); Thu, 20 Oct 2005 09:44:52 +0200
From: "Laurent Bonnaud" <bonnaud@lis.inpg.fr>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tetex-doc: shell variables should be quoted in /usr/bin/index-tetexdoc
X-Mailer: reportbug 3.17
Date: Thu, 20 Oct 2005 09:44:52 +0200
Message-Id: <[🔎] 20051020074452.AA3AF2C811C@smtpc.lis.inpg.Fr>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at lis.inpg.fr
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

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

---------------------------------------
Received: (at 334840-done) by bugs.debian.org; 20 Oct 2005 09:16:03 +0000
>From frank@kuesterei.ch Thu Oct 20 02:16:03 2005
Return-path: <frank@kuesterei.ch>
Received: from idmailgate2.unizh.ch [130.60.127.101] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1ESWWo-00039M-00; Thu, 20 Oct 2005 02:16:03 -0700
Received: from localhost.localdomain ([130.60.169.166])
	by idmailgate2.unizh.ch (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id j9K9Fmm7011254;
	Thu, 20 Oct 2005 11:15:48 +0200
Received: from localhost
	([127.0.0.1] helo=localhost.localdomain ident=frank)
	by localhost.localdomain with esmtp (Exim 4.50)
	id 1ESWWa-0001da-9u; Thu, 20 Oct 2005 11:15:48 +0200
To: "Laurent Bonnaud" <bonnaud@lis.inpg.fr>
Cc: 334840-done@bugs.debian.org
Subject: Re: Bug#334840: tetex-doc: shell variables should be quoted in
 /usr/bin/index-tetexdoc
X-Attribution: fant
X-Ehrenamt: http://www.langau.de
In-Reply-To: <[🔎] 20051020074452.AA3AF2C811C@smtpc.lis.inpg.Fr> (Laurent
 Bonnaud's message of "Thu, 20 Oct 2005 09:44:52 +0200")
References: <[🔎] 20051020074452.AA3AF2C811C@smtpc.lis.inpg.Fr>
From: =?iso-8859-1?q?Frank_K=FCster?= <frank@debian.org>
Date: Thu, 20 Oct 2005 11:15:48 +0200
Message-ID: <87wtk84khn.fsf@alhambra.kuesterei.ch>
User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Virus-Scanned: by amavisd-new
Delivered-To: 334840-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Version: 3.0-10

"Laurent Bonnaud" <bonnaud@lis.inpg.fr> wrote:

> 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:

This has already been fixed in 3.0-10:  I decided that this (upstream)
script ist too buggy and specialised to really adapt it to the use in
Debian that I intended, and dropped it.

Regards, Frank
--=20
Frank K=FCster
Inst. f. Biochemie der Univ. Z=FCrich
Debian Developer



Reply to: