Bug 10021 - inputrc installation needs to be optional
: inputrc installation needs to be optional
Status: CLOSED FIXED
Product: Codex
Classification: Unclassified
Component: libs
: stable-rc grimoire
: All Linux
: P2 normal
Assigned To: Grimoire Bug List
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-23 19:14 UTC by Jason Flatt
Modified: 2007-03-31 02:17 UTC (History)
5 users (show)

See Also:
iuso: fixed_in_lesser_branch+
eric: integrate_to_stable_grimoire+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Flatt 2005-10-23 19:14:34 UTC
There should be a file in /etc called inputrc.  Here's what is in mine (from an 
older ISO): 
 
# Begin /etc/inputrc 
 
# Make sure we don't output everything on the 1 line 
set horizontal-scroll-mode Off 
 
# Enable 8bit input 
set meta-flag On 
set input-meta On 
 
# Turns off 8th bit stripping 
set convert-meta Off 
 
# Keep the 8th bit for display 
set output-meta On 
 
# none, visible or audible 
set bell-style none 
 
# All of the following map the escape sequence of the 
# value contained inside the 1st argument to the 
# readline specific functions 
 
"\eOd": backward-word 
"\eOc": forward-word 
 
# for linux console 
"\e[1~": beginning-of-line 
"\e[4~": end-of-line 
"\e[5~": beginning-of-history 
"\e[6~": end-of-history 
"\e[3~": delete-char 
"\e[2~": quoted-insert 
 
# for xterm 
"\eOH": beginning-of-line 
"\eOF": end-of-line 
 
# End /etc/inputrc 
 
Also, there needs to be a file in /etc/profile.d called inputrc.sh with the 
following: 
 
#!/bin/bash 
# First check if this variable is already set 
# then if not set, check it (maybe), then set it 
 
if  [ -z "$INPUTRC" ] ; then 
        INPUTRC=/etc/inputrc 
fi 
export INPUTRC 
 
Maybe a spell should be created for it?
Comment 1 Eric Sandall 2006-02-02 16:14:02 UTC
I agree (and have gotten complaints from others that we don't have it).
Comment 2 Eric Sandall 2006-02-27 19:46:11 UTC
Perhaps an smgl-baselayout?
Comment 3 David Kowis 2006-02-27 20:23:21 UTC
Does it fit in with anything else? It kinda seems like a trivial thing for one
spell.... perhaps it should go with init.d ?
Comment 4 Eric Sandall 2006-02-28 12:40:09 UTC
I was thinking we could use the smgl-baselayout to add other files in the future
(/etc/hosts, /etc/passwd, /etc/group, etc.).
Comment 5 David Kowis 2006-03-02 09:21:18 UTC
That's a great idea. That would fix our /etc/hosts issue too.

Done yet? ;P
Comment 6 Karsten Behrmann 2006-03-02 12:06:19 UTC
Hmm, not quite...
the fun thing about /etc/hosts is that we need to add the hostname the user
selected into it too.
Comment 7 Juuso Alasuutari 2006-05-17 13:31:55 UTC
readline spell has installed inputrc since a few months already. Readline is 
also imho the correct spell for this because readline is what uses inputrc 
anyway. I think this bug should be closed. But how about we open a new one for 
smgl-baselayout?
Comment 8 Eric Sandall 2006-05-17 17:51:58 UTC
May want to so we don't forget. :) Probably one bug for each file.
Comment 9 Jason Flatt 2006-05-30 08:07:44 UTC
Okay Eric, I'm shutting down this bug because I just verified what Juuso said 
about readline. I'm going to leave it up to you to generate the other bug(s).
Comment 10 Jeremy Blosser 2006-07-20 15:40:26 UTC
The installation of /etc/inputrc needs to be made optional and default to 'n'. 
Things will work fine without it being there and believe it or not some people
won't want it.
Comment 11 Jeremy Blosser 2006-07-20 15:45:58 UTC
Moving to codex...
Comment 12 Jeremy Blosser 2006-07-20 15:46:49 UTC
finish hijacking this bug...
Comment 13 Seth Woolley 2006-07-20 15:50:21 UTC
Note that hacking INPUTRC breaks the default of ~/.inputrc.

Specifying a global inputrc that way is wrong!

The correct way is to have a .inputrc in the user skel for autocreation that
contains '$input /etc/inputrc' as its first line.  That way they get to modify
inputrc locally and get global benefits.

See bug 12888 for more details.
Comment 14 Juuso Alasuutari 2006-09-21 16:10:16 UTC
Sorry for this taking me so long! I've made readline's inputrc install 
optional in test with commit 43a2bd64c7a8f0120645c3196565dcef1fabcb7b. I'll 
refrain from marking this FIXED until an agreement has been reached about the 
details. See below:

Seth, the readline.sh script that's installed along with /etc/inputrc only 
sets INPUTRC=/etc/inputrc if ~/.inputrc doesn't exist. So even when a 
system-wide inputrc is installed, users can override it by setting up a local 
one (which can also have '$include /etc/inputrc' in it). Does this sound 
acceptable to you?
Comment 15 Juuso Alasuutari 2006-09-22 11:02:00 UTC
I forgot to add the CONFIGURE file in that commit, now it's done with 
8d789e3cac30cfe8cce0fd278f045f9db742bc6d.
Comment 16 Jaka Kranjc 2006-10-29 11:17:28 UTC
anything left here to do (I don't see it)? 
Comment 17 Juuso Alasuutari 2006-10-29 11:57:07 UTC
I'd say this is fixed. I was waiting for Seth to give his amen, but I think 
time's up :). The recent stable-rc has this edit, I'll mark this fixed in 
lesser branch and request for stable integration.
Comment 18 Eric Sandall 2006-11-17 12:29:34 UTC
I was going to integrate this as well, but I get this error when cherry-picking
the first commit:
$ git cherry-pick 43a2bd64c7a8f0120645c3196565dcef1fabcb7b 
Cannot run cherry-pick a multi-parent commit.
Comment 19 Jaka Kranjc 2006-11-18 08:15:39 UTC
yeah, it also contains the merge iuso did with upstream.
git log -p 43a2bd64c7a8f0120645c3196565dcef1fabcb7b
shows you actually want
b8a7f24a3fde4288da21adde45570cb7eb15c288
Comment 20 Eric Sandall 2006-11-23 12:41:00 UTC
Thanks. :) I also had to integrate 8d789e3cac30cfe8cce0fd278f045f9db742bc6d
(actually adding CONFIGURE). Both 8d789e3cac30cfe8cce0fd278f045f9db742bc6d and
b8a7f24a3fde4288da21adde45570cb7eb15c288 have been integrated to stable-0.4.
Comment 21 Juuso Alasuutari 2007-01-07 17:03:31 UTC
I'm reopening this because it looks like sandalle forgot to integrate the etc/ 
dir in stable's readline. It now has the query and installation code but 
nothing to install, leading to an error if the inputrc option is selected. See 
stable/libs/readline/ in http://codex.sourcemage.org/stable.tar.bz2
Comment 22 Eric Sandall 2007-01-09 12:28:32 UTC
*** Bug 13384 has been marked as a duplicate of this bug. ***
Comment 23 Jaka Kranjc 2007-01-11 03:15:29 UTC
Date:   Wed Dec 6 10:41:25 2006 -0800

that's when it was added, so it didn't make it into the tarball (25.11.). Seth 
is working on regenerating it.
Comment 24 Jeremy Blosser 2007-03-31 01:17:23 UTC
closing fixed bugs