Bug 167911 - $EDITOR should be set
Summary: $EDITOR should be set
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-09 14:23 UTC by Need Real Name
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-09-14 09:54:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2005-09-09 14:23:35 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050719 Epiphany/1.6.5

Description of problem:
Users of Fedora miss out on one of bash's biggest time savers because $EDITOR is not set.

Say you're constructing a long command:

$ for i in *.c; do something $i; somethingelse $i; mv $i /path/to/somewhere^X^E
(Ctrl-X, Ctrl-E)

the shortcut to open your default editor will fail because EDITOR is not set.

I don't have emacs installed. It would be nice if vi loaded.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
x

Additional info:

Comment 1 Bill Nottingham 2005-09-09 19:19:38 UTC
Hm, I'm not sure defaulting $EDITOR is really best. Perhaps bash should fall
back to _PATH_VI (from paths.h) if emacs isn't found.

Comment 2 Tim Waugh 2005-09-14 09:54:34 UTC
set -o vi
Then press 'v'

Comment 3 Need Real Name 2005-09-14 10:57:03 UTC
I don't want to change my line editing interface, I'm happy with the default -
but I do want to be able to use ^X^E without it falling over because it can't
use emacs.

Comment 4 Tim Waugh 2005-09-14 11:20:14 UTC
So you want to use emacs keybindings for command line editing, but vi
keybindings for editing the command line.  I suspect you are in the minority.

Please take this up with the bash maintainer if you'd like it changed.


Comment 5 Need Real Name 2005-09-14 11:57:21 UTC
Yes, why not? vi is the standard default editor, and bash - complete with emacs
keybindings - is the standard default shell.

I don't think the request is so strange.


Note You need to log in before you can comment on or make changes to this bug.