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

Bug#444475: kopetex: bashism in kopete_latexconvert makes kopete hang.



Package: kopete
Version: 4:3.5.7-4
Severity: normal

--- Please enter the report below this line. ---
Hi,

When I tried to type latex formulae in Kopete, I noticed that Kopete hanged. 
Launching kopete from a console and repeating the operation led to the 
following message:

/usr/bin/kopete_latexconvert.sh: 1: let: not found

I thin that the problem is the line 225: let OPTIND=$OPTIND+1, which seems to 
be a bashism, whereas the shebang indicates /bin/sh.
This line should be then replaced by 

OPTIND=$(($OPTIND+1))

I would have liked to produce a patch, but I don't know (yet) (and have no 
time now to learn) how to do it correctly.
Thanks !

Cedric

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.22-2-686

Debian Release: lenny/sid
  990 unstable        ftp.fr.debian.org 
  700 testing         ftp.lip6.fr 
  300 experimental    ftp.lip6.fr 

--- Package information. ---
Depends                        (Version) | Installed
========================================-+-======================
kdelibs4c2a               (>= 4:3.5.7-1) | 4:3.5.7.dfsg.1-7
libacl1                    (>= 2.2.11-1) | 2.2.45-1
libart-2.0-2                 (>= 2.3.18) | 2.3.19-3
libattr1                    (>= 2.4.4-1) | 1:2.4.39-1
libaudio2                                | 1.9-2+b1
libc6                         (>= 2.6-1) | 2.6.1-5
libfam0                                  | 2.7.0-13
libfontconfig1                (>= 2.4.0) | 2.4.2-1.2
libfreetype6                  (>= 2.3.5) | 2.3.5-1+b1
libgadu3                  (>= 1:1.7~rc2) | 1:1.7~rc2-2
libgcc1              (>= 1:4.2-20070516) | 1:4.2.1-5
libglib2.0-0                 (>= 2.12.9) | 2.14.1-3
libgsmme1c2a                (>= 1.10-10) | 1.10-10
libice6                     (>= 1:1.0.0) | 2:1.0.4-1
libidn11                     (>= 0.5.18) | 1.1-1
libjpeg62                                | 6b-14
libmeanwhile1                 (>= 1.0.2) | 1.0.2-3
libpcre3                        (>= 4.5) | 7.3-2
libpng12-0                 (>= 1.2.13-4) | 1.2.15~beta5-2
libqt3-mt                   (>= 3:3.3.7) | 3:3.3.7-9
libsm6                                   | 2:1.0.3-1+b1
libstdc++6             (>= 4.2-20070516) | 4.2.1-5
libx11-6                                 | 2:1.0.3-7
libxcursor1                   (>> 1.1.2) | 1:1.1.9-1
libxext6                                 | 1:1.0.3-2
libxft2                       (>> 2.1.1) | 2.1.12-2
libxi6                                   | 2:1.1.3-1
libxinerama1                             | 1:1.0.2-1
libxml2                      (>= 2.6.29) | 2.6.30.dfsg-2
libxrandr2                  (>= 2:1.2.0) | 2:1.2.2-1
libxrender1                              | 1:0.9.4-1
libxslt1.1                   (>= 1.1.18) | 1.1.22-1
libxt6                                   | 1:1.0.5-3
zlib1g             (>= 1:1.2.3.3.dfsg-1) | 1:1.2.3.3.dfsg-5





Reply to: