Package: debianutils
Version: 2.16.1
Severity: normal
Tags: patch

Hi,

/usr/bin/sensible-editor tries to run a few editors in turn, but only
exits with the exit state given by that editor if it happens to be the
editor in the $VISUAL environment variable. Interesting information gets
lost this way, and it makes the exit state to be something one cannot
programmatically depend on, so I consider this a bug.

The following patch fixes this behaviour to always exit sensible-editor
with the exit state of the invoked editor.

--- sensible-editor.orig        2006-06-30 07:02:19.000000000 +0200
+++ sensible-editor     2006-06-30 07:02:36.000000000 +0200
@@ -29,3 +29,4 @@
                fi
        fi
 fi
+exit $ret

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-1-powerpc
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages debianutils depends on:
ii  coreutils                     5.96-5     The GNU core utilities
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  mktemp                        1.5-2      Makes unique filenames for tempora

debianutils 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