Bug 167911

Summary: $EDITOR should be set
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: notting
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-14 09:54:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.