Package: bash
Version: 3.1-2
Severity: normal
Tags: patch

The bash-default-editor.dpatch that fixed #296603 has a typo that breaks
the default editor for edit-and-execute-command when in non-posix vi mode.
If EDITOR is not set then trying to edit a command line with <esc>v
just executes the current line without starting an editor.  The fix is
to just drop an extra ')' character from the define of VI_EDIT_COMMAND.

--- bash-3.1/debian/patches/bash-default-editor.dpatch  2006-03-09 
13:31:52.000000000 -0700
+++ bash-3.1-fix/debian/patches/bash-default-editor.dpatch      2006-03-10 
17:13:34.000000000 -0700
@@ -41,7 +41,7 @@

 -#define VI_EDIT_COMMAND               "fc -e \"${VISUAL:-${EDITOR:-vi}}\""
 -#define EMACS_EDIT_COMMAND    "fc -e \"${VISUAL:-${EDITOR:-emacs}}\""
-+#define VI_EDIT_COMMAND               "fc -e \"${VISUAL:-${EDITOR:-$(command 
-v editor || echo vi))}}\""
++#define VI_EDIT_COMMAND               "fc -e \"${VISUAL:-${EDITOR:-$(command 
-v editor || echo vi)}}\""
 +#define EMACS_EDIT_COMMAND    "fc -e \"${VISUAL:-${EDITOR:-$(command -v 
editor || echo emacs)}}\""
  #define POSIX_VI_EDIT_COMMAND "fc -e vi"


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-amd64-k8-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages bash depends on:
ii  base-files                    3.1.10     Debian base system miscellaneous f
ii  debianutils                   2.15.2     Miscellaneous utilities specific t
ii  libc6                         2.3.5-13   GNU C Library: Shared libraries an
ii  libncurses5                   5.5-1      Shared libraries for terminal hand

bash recommends no packages.

-- no debconf information

-- 
Mike Stroyan, [EMAIL PROTECTED]


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

Reply via email to