Package: coccinella Version: 0.96.20-6 Severity: minor Tags: patch When I run coccinella and exit the program, this message show up:
/usr/bin/coccinella: line 5: popd: directory stack empty I had a look at the script, and the cause is a bug in the startup script. The '| exit -1' should read '|| exit 1' or something like that (returning negative numbers as exit codes do not make sense). But using pushd and popd in this small script is useless, as nothing will be using the current working directory when the script exits. Instead, I suggest changing the wrapper to just exec coccinella and use /bin/sh for faster startup. --- /usr/bin/coccinella 2011-12-28 15:38:53.000000000 +0100 +++ /tmp/coccinella 2014-03-04 09:36:47.286666958 +0100 @@ -1,5 +1,2 @@ -#!/bin/bash - -pushd /usr/share/coccinella | exit -1 -/usr/bin/wish8.5 /usr/share/coccinella/Coccinella.tcl "$@" -popd +#!/bin/sh +exec /usr/bin/wish8.5 /usr/share/coccinella/Coccinella.tcl "$@" -- System Information: Debian Release: 7.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages coccinella depends on: ii tcl8.5 8.5.11-2 ii tk8.5 8.5.11-2 ii tkpng 0.9-1 ii tktreectrl 2.2.8-1 Versions of packages coccinella recommends: ii aspell 0.60.7~20110707-1 pn iaxclient-tcl <none> ii ispell 3.3.02-6 ii libudp-tcl 1.0.8-6 ii tcl-tls 1.6+dfsg-3 coccinella suggests no packages. -- Happy hacking Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org