0

There's an old server I am working with, runs modified FreeBSD 6.1 with bash 2.05b.0(1)-release.

On 'up' key press the last command from history pops up - but I can't access the last symbol, like the string is actually one character shorter than it's displayed. Therefore backspace is useless, and delete just mangles the last few characters.

Terminal is the 'terminator' with the following compatibility options:

  • Backspace key generates: Control-H
  • Delete key generates: Escape sequence

I was wondering if this was the normal behaviour of this version of bash, or some sort of misconfiguration / terminal compatibility problem.

Bash options are as follows:

# set -o
allexport       off
braceexpand     on
emacs           off
errexit         off
hashall         on
histexpand      on
history         on
ignoreeof       off
interactive-comments    on
keyword         off
monitor         on
noclobber       off
noexec          off
noglob          off
nolog           off
notify          off
nounset         off
onecmd          off
physical        off
posix           off
privileged      off
verbose         off
vi              on
xtrace          off
4
  • Have you tried bash --norc?
    – Cyrus
    Commented May 14, 2015 at 11:13
  • If you do !!:p, do you get the full last command line?
    – boardrider
    Commented May 15, 2015 at 6:52
  • @Cyrus : tried it, the result is the same
    – XNRL
    Commented May 15, 2015 at 12:26
  • @boardrider : yes, I do
    – XNRL
    Commented May 15, 2015 at 12:31

1 Answer 1

0

Turns out vi-mode was enabled in .inputrc for every user on the system. It does behave a bit different from vi-mode in zsh that I'm used to though - meaning 1) on 'up' it enters the command mode immediately and 2) it takes double-tap of 'a' or 'i' to enter the insert mode.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .