Bug 83924 - csh.login specifies wrong readline conf file (inputrc)
csh.login specifies wrong readline conf file (inputrc)
Product: Red Hat Linux
Classification: Retired
Component: setup (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
: 83925 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2003-02-09 23:55 EST by Michael Wardle
Modified: 2014-03-16 22:34 EDT (History)
1 user (show)

See Also:
Fixed In Version: 2.5.32-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-23 01:30:38 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
set to ~/.inputrc if it exists else set to /etc/inputrc if that exists (314 bytes, patch)
2003-02-10 00:08 EST, Michael Wardle
no flags Details | Diff

  None (edit)
Description Michael Wardle 2003-02-09 23:55:48 EST
Description of problem: 
/etc/csh.login tests for the existence of the user's readline configuration file (~/.inputrc), but sets it to the 
system-wide readline configuration file (/etc/inputrc) if the user's configuration file is found. 
Version-Release number of selected component (if applicable): 
How reproducible: 
Steps to Reproduce: 
1. Change login shell to tcsh 
2. Log in 
3. Print the value of $INPUTRC 
Actual results: 
Value is /etc/inputrc. 
Expected results: 
Value is $HOME/.inputrc or unset. 
Additional info: 
This exists in Red Hat 7.3 thru 8.0.92.  I assume it still exists in the current version.
Comment 1 Michael Wardle 2003-02-10 00:05:39 EST
*** Bug 83925 has been marked as a duplicate of this bug. ***
Comment 2 Michael Wardle 2003-02-10 00:08:30 EST
Created attachment 89958 [details]
set to ~/.inputrc if it exists else set to /etc/inputrc if that exists

Trivial patch showing a possible solution.

if ~/.inputrc is a file, set $INPUTRC to that
else if /etc/inputrc is a file, set $INPUTRC to that
Comment 3 Michael Wardle 2003-03-21 15:41:16 EST
Please try to fix this for the next Red Hat release.  It's a very simple fix,
but in its current state, it causes problems for any tcsh user wanting to use
Emacs, gdb, bash, or any other program that uses readline.
Comment 4 Michael Wardle 2003-03-21 21:24:57 EST
The smallest change, and the one which makes the csh login script equivalent
to the bash login script is to change:
if ( -f $HOME/.inputrc ) then
if ( ! $?INPUTRC && ! -f $HOME/.inputrc ) then
Comment 5 Bill Nottingham 2004-09-23 01:30:38 EDT
This was fixed in 2.5.32.

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