[Bug 382097] New: yast2 bash completion broken
https://bugzilla.novell.com/show_bug.cgi?id=382097 Summary: yast2 bash completion broken Product: openSUSE 11.0 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: robin.knapp@fujitsu-siemens.com QAContact: jsrain@novell.com Found By: --- I discovered some weird behaviour with bash completion: Scenario 1: - Start new bash - type "yast <tab><tab>" -> you will get a list of all yast modules - type "zypper <tab>" -> you will get "zypper add-on" huh? Scenatio 2: - Start new bash - type "zypper <tab><tab>" -> you will get a list of all zypper commands - type "yast2 <tab><tab>" -> you will still get a list of all zypper commands huh²? So I grepped around a bit in /etc/bash_completion.d and found out: zypper.sh and yast2_completion.sh share a variable and do NOT declare it as local, the variable is "MODLIST" Also, zypper.sh does initialize "MODLIST" as yast2-completion.sh does. Fix: 1. yast2_completion.sh - move "MODLIST=()" inside the function and declare as local 2. zypper.sh - add "MODLIST=()" inside the function and declare as local Both work fine with this fix, but I'm not 100% sure if that's the correct solution (not familiar with bash completion scripts) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382097
User robin.knapp@fujitsu-siemens.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c1
--- Comment #1 from Robin Knapp
https://bugzilla.novell.com/show_bug.cgi?id=382097
Martin Mrazik
https://bugzilla.novell.com/show_bug.cgi?id=382097
User jsrain@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c2
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=382097
User robin.knapp@fujitsu-siemens.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c3
--- Comment #3 from Robin Knapp
https://bugzilla.novell.com/show_bug.cgi?id=382097
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c4
--- Comment #4 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=382097
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c5
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=382097
User lslezak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c6
--- Comment #6 from Ladislav Slezak
https://bugzilla.novell.com/show_bug.cgi?id=382097
User suse-beta@cboltz.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c7
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=382097
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c10
--- Comment #10 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=382097
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382097#c11
Ján Kupec
participants (1)
-
bugzilla_noreply@novell.com