Package: debian-goodies
Version: 0.23
Severity: normal

My '/bin/sh' is linked to 'dash'.  'debman' does not
run with it:

    % debman -f evolution_2.2.3-5_i386.deb evolution ; echo $?
    trap: 83: ERR: bad trap
    2

However, this works correctly:

    % bash /usr/bin/debman -f evolution_2.2.3-5_i386.deb evolution

Looking at the code I believe the bashism is:

    grep -n ERR /usr/bin/debman
    83:trap 'rm -rf "$TEMPDIR"' EXIT ERR HUP INT QUIT TERM

...'dash' doesn't understand the 'ERR' signal.

Suggested kludge, if this bashism is necessary:

    Change first line from this:

        #! /bin/sh -e

    to:

        #! /bin/bash -e


If it matters, both of these shells worked correctly:

    % ksh /usr/bin/debman -f evolution_2.2.3-5_i386.deb evolution
    % pdksh /usr/bin/debman -f evolution_2.2.3-5_i386.deb evolution


Hope this helps...




-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages debian-goodies depends on:
ii  curl                       7.15.3-1      Get a file from an HTTP, HTTPS, FT
ii  grep-dctrl                 2.9.0         Grep Debian package information - 
ii  lsof                       4.77.dfsg.1-3 List open files
ii  python                     2.3.5-5       An interactive high-level object-o

debian-goodies recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to