Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 21327 - /etc/inputrc wants On/Off, not on/off
/etc/inputrc wants On/Off, not on/off
Product: Red Hat Linux
Classification: Retired
Component: readline (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-11-25 10:09 EST by j. alan eldridge
Modified: 2007-04-18 12:30 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-11-28 02:03:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch to fix boolean values in /etc/inputrc (507 bytes, patch)
2000-11-25 10:10 EST, j. alan eldridge
no flags Details | Diff

  None (edit)
Description j. alan eldridge 2000-11-25 10:09:03 EST
The GNU Readline library expects boolean values in /etc/inputrc (or
${HOME}/.inputrc) to be the strings "On" or "Off", not their lowercased

Bug was detected by perl-5.6.0 when loading the Readline module (after
upgrading componenets using "install Bundle::CPAN".
Comment 1 j. alan eldridge 2000-11-25 10:10:00 EST
Created attachment 5706 [details]
patch to fix boolean values in /etc/inputrc
Comment 2 Pekka Savola 2000-11-25 14:57:19 EST
The current values work just fine (e.g. bash).  I find it's probable that perl readline 
may be broken.
Comment 3 j. alan eldridge 2000-11-25 15:03:53 EST
from "man readline" on a RH7 box:

    Readline has variables that can be used  to  further  cus-
    tomize its behavior.  A variable may be set in the inputrc
    file with a statement of the form

           set variable-name value

    Except where noted, readline variables can take the values
    On or Off.  The variables and their default values are:
    ^^^^^^^^^ note capitalization

Comment 4 Bill Nottingham 2000-11-28 02:03:08 EST
According to the readline source (bind.c):

/* A boolean value that can appear in a `set variable' command is true if
   the value is null or empty, `on' (case-insenstive), or "1".  Any other
   values result in 0 (false). */

So, the inputrc is not in error. The readline documentation might be. :)
Comment 5 Nalin Dahyabhai 2001-04-06 20:30:25 EDT
The library will accept either "On" or "on" as equivalent.  The info docs even
use lower-case spellings for examples.  The man page is out of date, but it will
be changed to match the examples in the info documentation (in 4.1-9 and later).

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