Bug 57846 - set -o vi doesn't work with login shell and no .inputrc
set -o vi doesn't work with login shell and no .inputrc
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
6.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-12-27 17:15 EST by Rick Otten
Modified: 2007-04-18 12:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-12-27 17:15:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rick Otten 2001-12-27 17:15:38 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-7.0.1 i586)

Description of problem:
We uncovered what appears to be an interesting little bug in bash on our 
RH 6.2 systems today.

I've upgraded my system to the very latest version of bash and it still
isn't 
fixed.

Problem:
  When you log in with 'bash' as your shell, "set -o vi" doesn't work.
("set -o emacs" does work).
  Invoking a second bash shell (SHLVL=2) will then let you run "set -o vi"
without any problem.

Work Around:
   $ touch $HOME/.inputrc
  log out and back in.
  "set -o vi" will work fine.

Note:
   $ unset INPUTRC
  or
   $ export INPUTRC=$HOME/.inputrc
  has no effect on the problem.  (The variable does change however.)

This bug does not seem exist on the Red Hat 7.x systems (bash2).

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


How reproducible:
Always

Steps to Reproduce:
1.login with bash as your login shell and no .inputrc
2.set -o vi
3.<esc> k
   Can you scroll back through your old commands? Or do you get a bunch of
k's?
4.set -o emacs
5.<ctrl> p
   Does this one scroll through?

etc...
	

Additional info:
Comment 1 Bernhard Rosenkraenzer 2002-01-09 10:13:17 EST
Works in 7.x

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