[Bug 998027] New: readline 5.1, mysql client, inputrc issue
http://bugzilla.opensuse.org/show_bug.cgi?id=998027 Bug ID: 998027 Summary: readline 5.1, mysql client, inputrc issue Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: sweet_f_a@gmx.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hi, I've noticed that on Leap 42.1 the mariadb client does not seem to respect /etc/inputrc and ~/.inputrc correctly. If you have default /etc/inputrc and ~/.inputrc (from /etc/skel) then the maria/mysql console behaves strange regarding key bindings like Alt-PgUP and others. Seems that it only uses the poor ~/.inputrc and ignores the long /etc/inputrc. It works again when - removing ~/.inputrc (and re-login) or - unsetting $INPUTRC or - copying /etc/inputrc to ~/.inputrc. On openSUSE 13.1 this was no issue. openSUSE 13.1 is using readline 5.2 instead of 5.1. Maybe updating Leap to 5.2 would fix the issue. I have not tried it yet. I've also not tried on 42.2. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=998027 Andreas Stieger <astieger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |astieger@suse.com, | |kstreitova@suse.com Component|Basesystem |Maintenance Assignee|bnc-team-screening@forge.pr |kstreitova@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=998027 http://bugzilla.opensuse.org/show_bug.cgi?id=998027#c3 Torben Mikael Hansen <torhans-build@sciomnis.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |torhans-build@sciomnis.com Version|Leap 42.1 |Leap 42.3 Resolution|INVALID |--- --- Comment #3 from Torben Mikael Hansen <torhans-build@sciomnis.com> --- I can partly confirm the reported bug on Leap 42.3 With one user the following ~/.inputrc MariaDB does not respect the settings in /etc/inputrc ################################################################################ ## ~/.inputrc ## ## Control the behaviour of the readline library used e.g. ## by the bash in the interactive mode for line editing. ## ################################################################################ # # The bell style used e.g. on error or tab completion, possible values # are `none', `visible', and `audible' the ringing the bell. # #set bell-style none # # If set to on, words which have more than one possible completion without # any possible partial completion cause the matches to be listed immediately # instead of ringing the bell. # #set show-all-if-unmodified on # # If set to on, words which have more than one possible completion cause the # matches to be listed immediately instead of ringing the bell. # #set show-all-if-ambiguous on # # end # Deleting it make MariaDB work correctly. Logging in as a different user also works. Both users have $INPUTRC==/etc/inputrc and the same ~/.inputrc (before deleting for first user) First user login using ssh, second user using su . -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=998027 http://bugzilla.opensuse.org/show_bug.cgi?id=998027#c4 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |INVALID --- Comment #4 from Dr. Werner Fink <werner@suse.com> --- (In reply to Torben Mikael Hansen from comment #3)
I can partly confirm the reported bug on Leap 42.3
Then do not use this file or unset the environment variable INPUTRC
With one user the following ~/.inputrc MariaDB does not respect the settings in /etc/inputrc
############################################################################# ### ## ~/.inputrc ## ## Control the behaviour of the readline library used e.g. ## by the bash in the interactive mode for line editing. ## ############################################################################# ### # # The bell style used e.g. on error or tab completion, possible values # are `none', `visible', and `audible' the ringing the bell. # #set bell-style none
# # If set to on, words which have more than one possible completion without # any possible partial completion cause the matches to be listed immediately # instead of ringing the bell. # #set show-all-if-unmodified on
# # If set to on, words which have more than one possible completion cause the # matches to be listed immediately instead of ringing the bell. # #set show-all-if-ambiguous on
# # end #
Deleting it make MariaDB work correctly.
Logging in as a different user also works. Both users have $INPUTRC==/etc/inputrc and the same ~/.inputrc (before deleting for first user)
First user login using ssh, second user using su .
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=998027 http://bugzilla.opensuse.org/show_bug.cgi?id=998027#c5 Torben Mikael Hansen <torhans-build@sciomnis.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #5 from Torben Mikael Hansen <torhans-build@sciomnis.com> --- (In reply to Dr. Werner Fink from comment #4)
(In reply to Torben Mikael Hansen from comment #3)
I can partly confirm the reported bug on Leap 42.3
Then do not use this file or unset the environment variable INPUTRC
Maybe that is not entirely clear, but this is the default setting. I did not create this file, it is created/copied automatically when creating a new user, in YaST.
With one user the following ~/.inputrc MariaDB does not respect the settings in /etc/inputrc
############################################################################# ### ## ~/.inputrc ## ## Control the behaviour of the readline library used e.g. ## by the bash in the interactive mode for line editing. ## ############################################################################# ### # # The bell style used e.g. on error or tab completion, possible values # are `none', `visible', and `audible' the ringing the bell. # #set bell-style none
# # If set to on, words which have more than one possible completion without # any possible partial completion cause the matches to be listed immediately # instead of ringing the bell. # #set show-all-if-unmodified on
# # If set to on, words which have more than one possible completion cause the # matches to be listed immediately instead of ringing the bell. # #set show-all-if-ambiguous on
# # end #
Deleting it make MariaDB work correctly.
Logging in as a different user also works. Both users have $INPUTRC==/etc/inputrc and the same ~/.inputrc (before deleting for first user)
First user login using ssh, second user using su .
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=998027 http://bugzilla.opensuse.org/show_bug.cgi?id=998027#c6 --- Comment #6 from Dr. Werner Fink <werner@suse.com> --- (In reply to Torben Mikael Hansen from comment #5)
(In reply to Dr. Werner Fink from comment #4)
(In reply to Torben Mikael Hansen from comment #3)
I can partly confirm the reported bug on Leap 42.3
Then do not use this file or unset the environment variable INPUTRC
Maybe that is not entirely clear, but this is the default setting. I did not create this file, it is created/copied automatically when creating a new user, in YaST.
AFAICR this is fixed in package aaa_base ... found it: * Thu Apr 27 2017 werner@suse.de - More 8bit key escape control sequences for XTerm - Do not set INPUTRC as readline does know personal as well as system inputrc also make /etc/inputrc do set know sequences for both vi line editing modes as well as for emacs line editing mode. - Do remove patch aaa_base-13.2+git20170308.c0ecf2e.dif not only from package but also from spec file seems this had never reached Leap 42.3 but Leap 15 does include this change -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=998027 http://bugzilla.opensuse.org/show_bug.cgi?id=998027#c7 --- Comment #7 from Kristyna Streitova <kstreitova@suse.com> --- (In reply to Dr. Werner Fink from comment #6)
AFAICR this is fixed in package aaa_base ... found it:
* Thu Apr 27 2017 werner@suse.de - More 8bit key escape control sequences for XTerm - Do not set INPUTRC as readline does know personal as well as system inputrc also make /etc/inputrc do set know sequences for both vi line editing modes as well as for emacs line editing mode. - Do remove patch aaa_base-13.2+git20170308.c0ecf2e.dif not only from package but also from spec file
seems this had never reached Leap 42.3 but Leap 15 does include this change
Thanks for searching. Do you plan to backport this fix for Leap 42.3? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com