For discussion of Alpine Linux development and developer support

2 2

[alpine-devel] Missing /etc/inputrc

Gennady Feldman
Details
Message ID
<CAFvNWOTEcExxwc6ANMPRe8XoqR2+DVYRqjh2oJ7Q_Y4Bf-R9rA@mail.gmail.com>
Sender timestamp
1515521492
DKIM signature
missing
Download raw message
Hi,

I've ran into an issue where some of the common keys where not working
inside bash in Alpine. The fix was actually quite trivial. I just had to
copy /etc/inputrc from another box. This leads me to the question as to why
Alpine doesn't provide /etc/inputrc as part of a package? alpine-baselayout?

Thank you,

Gennady
A. Wilcox
Details
Message ID
<0ae12c2d-4ecb-81b6-4a0c-ea6d23c191a2@adelielinux.org>
In-Reply-To
<CAFvNWOTEcExxwc6ANMPRe8XoqR2+DVYRqjh2oJ7Q_Y4Bf-R9rA@mail.gmail.com> (view parent)
Sender timestamp
1515543915
DKIM signature
missing
Download raw message
On 01/09/18 12:11, Gennady Feldman wrote:
> Hi,
> 
> I've ran into an issue where some of the common keys where not working
> inside bash in Alpine.


"some of the common keys" is vague here.  I'm assuming you probably mean
the emacs bindings like ^A, ^K, etc?


> The fix was actually quite trivial. I just had to
> copy /etc/inputrc from another box. This leads me to the question as to
> why Alpine doesn't provide /etc/inputrc as part of a package?


Using these packages:

Installed:                                Available:
bash-4.4.12-r1                          = 4.4.12-r1
readline-7.0.003-r0                     = 7.0.003-r0

I don't need an /etc/inputrc to use ^A, ^K, etc in bash.  (I use zsh in
vim mode typically, so I wouldn't typically notice.)  It looks like
maybe this also handles ^← ^→ for word skipping, which does *not* work
here in this bash.

> alpine-baselayout?

Since this is a readline file, it should probably be provided by
readline; I'm not sure why Gentoo puts it in sys-apps/baselayout.
Debian has it in readline-common (as /usr/share/readline/inputrc).
Fedora has it in setup[noarch] ("A set of configuration and setup
files"); presumably, this is because they customise it beyond the
readline library's shipped example file, and because readline is a part
of their @system repo.


So, tl;dr: +1 on shipping an /etc/inputrc in readline package.


Best,
--arw

-- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
http://adelielinux.org
Gennady Feldman
Details
Message ID
<CAFvNWOTwGNrGxX4SA1YUQfRitiqJGJw66fSDzU+w12G=90AAfw@mail.gmail.com>
In-Reply-To
<0ae12c2d-4ecb-81b6-4a0c-ea6d23c191a2@adelielinux.org> (view parent)
Sender timestamp
1515606289
DKIM signature
missing
Download raw message
I had issues with Home/End keys in default (emacs) bash editing mode.

I just sent a PR to add inputrc to readline package.

Thank you,

Gennady

On Tue, Jan 9, 2018 at 7:25 PM, A. Wilcox <awilfox@adelielinux.org> wrote:

> On 01/09/18 12:11, Gennady Feldman wrote:
> > Hi,
> >
> > I've ran into an issue where some of the common keys where not working
> > inside bash in Alpine.
>
>
> "some of the common keys" is vague here.  I'm assuming you probably mean
> the emacs bindings like ^A, ^K, etc?
>
>
> > The fix was actually quite trivial. I just had to
> > copy /etc/inputrc from another box. This leads me to the question as to
> > why Alpine doesn't provide /etc/inputrc as part of a package?
>
>
> Using these packages:
>
> Installed:                                Available:
> bash-4.4.12-r1                          = 4.4.12-r1
> readline-7.0.003-r0                     = 7.0.003-r0
>
> I don't need an /etc/inputrc to use ^A, ^K, etc in bash.  (I use zsh in
> vim mode typically, so I wouldn't typically notice.)  It looks like
> maybe this also handles ^← ^→ for word skipping, which does *not* work
> here in this bash.
>
> > alpine-baselayout?
>
> Since this is a readline file, it should probably be provided by
> readline; I'm not sure why Gentoo puts it in sys-apps/baselayout.
> Debian has it in readline-common (as /usr/share/readline/inputrc).
> Fedora has it in setup[noarch] ("A set of configuration and setup
> files"); presumably, this is because they customise it beyond the
> readline library's shipped example file, and because readline is a part
> of their @system repo.
>
>
> So, tl;dr: +1 on shipping an /etc/inputrc in readline package.
>
>
> Best,
> --arw
>
> --
> A. Wilcox (awilfox)
> Project Lead, Adélie Linux
> http://adelielinux.org
>
>