who calls /etc/inputrc in centos 6.5?
hello, I am learning cenos 6.5 now and I am learning bash.
By google, I find that in /etc/profile, there should be this: if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then INPUTRC=/etc/inputrc fi But I find no these line in my /etc/profle after echo $INPUTRC, I find that it is empty. Is it normal like this? Thank you very much. |
Disclaimer: I am not a CentOS user, so it is possible (but not likely) it does something strange... but...
From man bash: Quote:
Otherwise, setting INPUTRC in /etc/profile is a common way of doing that, but it could be anywhere, or nowhere, along the initialization chain (see man bash: INITIALIZATION for how that works). |
No, there is no ~/.inputrc, and $INPUTRC is defined nowhere
|
Quote:
Oh yes, welcome to LQ! |
/etc/inputrc is used by readline package. It uses it to configure itself. And the line in /etc/profile should have export INPUTRC that is why echo outputs none.
|
Quote:
|
The readline library interprets the default file /etc/inputrc. So if that file is present, then no need to set a variable.
Read man page and info page for more info. Code:
man readline |
All times are GMT -5. The time now is 06:27 PM. |