You are not logged in.

#1 2020-01-24 08:32:04

MightyWatcher
Member
Registered: 2019-12-30
Posts: 9

Failed to source inputrc

I was following the arch wiki page on readline when I noticed that my ~/.inputrc and /etc/inputrc are not sourcing properly. Many lines returning "command not found," and I haven't even changed my /etc/inputrc.

$ source .inputrc
bash: \e[1;5D:: command not found
bash: \e[1;5C:: command not found
$ source /etc/inputrc
bash: mode=emacs: command not found
bash: \e[1~:: command not found
bash: \e[4~:: command not found
bash: \e[5~:: command not found
bash: \e[6~:: command not found
bash: \e[7~:: command not found
bash: \e[3~:: command not found
bash: \e[2~:: command not found
bash: \e[5C:: command not found
bash: \e[5D:: command not found
bash: \e\e[C:: command not found
bash: \e\e[D:: command not found
bash: \e[1;5C:: command not found
bash: \e[1;5D:: command not found
bash: \e[8~:: command not found
bash: \eOH:: command not found
bash: \eOF:: command not found
bash: \e[H:: command not found
bash: \e[F:: command not found

Anyone know what's causing this?

Offline

#2 2020-01-24 08:47:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 8,688

Re: Failed to source inputrc

Why do you think you have to source it? There's nothing of the sort on the wiki page. Sourcing tells bash to interpret the input as bash script, but you have a config file that will be read on program start and not interpreted by bash as a shell.

If you want to read/check/manipulate this during runtime you should look at the bind command information in the bash man page.

Last edited by V1del (2020-01-24 08:56:55)

Offline

Board footer

Powered by FluxBB