Mike Stroyan wrote:

> Bash Version: 3.1
> Patch Level: 0
> Release Status: release
> 
> Description:
>       The default edit-and-execute-command behavior for non-posix vi
>       editing mode fails when EDITOR is not set.  It has changed from
>       using vi in 3.0 to trying to use 'editor' first in 3.1.  But it
>       fails to start an editor and just executes the unchanged command line.
> 
> Repeat-By:
>       Start bash
>       set -o vi
>       unset EDITOR
>       Type 'date<esc>v'
>       The date command is run without a chance to edit it.
> 
> Fix:
>       Remove an extra right parenthesis from bashline.c.
> 
> --- bash/bashline.c~  2006-01-31 13:30:34.000000000 -0700
> +++ bash/bashline.c   2006-03-09 12:32:24.000000000 -0700
> @@ -800,7 +800,7 @@
>     command being entered (if no explicit argument is given), otherwise on
>     a command from the history file. */
>  
> -#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"

That's not in bash-3.1 as distributed.  It must have been added by
Debian.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                           Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to