[Bug 242123] New: rpm out of bash completion list
https://bugzilla.novell.com/show_bug.cgi?id=242123 Summary: rpm out of bash completion list Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dieter.jurzitza@t-online.de QAContact: qa@suse.de In older SuSE distributions (tested until SuSE 9.3) the command rpm -hiv xx<TAB> completed the name xx.. to xx<whatsoever>.rpm given that the corresponding rpm is situated in the current directory. This functionality does not exist any more with openSuSE 10.2, what is quite annoying. Thanks for looking into this, take care Dieter Jurzitza -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |agruen@novell.com |screening@forge.provo.novell| |.com | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|agruen@novell.com |mkoenig@novell.com Status|NEW |ASSIGNED -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |dieter.jurzitza@t-online.de ------- Comment #1 from mkoenig@novell.com 2007-02-12 03:52 MST ------- Did you try rpm -ihv xx<TAB> ('i' option being the first)? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 ------- Comment #2 from dieter.jurzitza@t-online.de 2007-02-12 05:15 MST ------- Hi, rpm -ihv xx<TAB> does indeed work. I did not experiment with this because I was used to -hiv (easy to remember, though probably macabre) since the old days of 7.2 and before. Is there any reason to not support this any more? Thank you very much, take care Dieter Jurzitza -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 ------- Comment #3 from mkoenig@novell.com 2007-02-12 06:15 MST ------- Are you really sure, it worked with 9.3? I checked the code from bash-completion and the rpm related code hasn't changed. Also the behaviour seems to be the same. Anyway, please try the following patch if this works for you. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 ------- Comment #4 from mkoenig@novell.com 2007-02-12 06:16 MST ------- Created an attachment (id=118586) --> (https://bugzilla.novell.com/attachment.cgi?id=118586&action=view) patch -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 ------- Comment #5 from dieter.jurzitza@t-online.de 2007-02-12 12:56 MST ------- Hi, it works like charm with SuSE 9,3. Both 64 and 32 bit version. And it works with SuSE7.3 (that's about the oldest thing I could find). But it definitively does not work with SuSE 10.2. In contrast it *does* work with SuSE 10.2 if one installs bash-completion. I did not even know such a package exists - your patch pointed to this. Ok, learned something. The difference is: in the older versions bash alone can handle rpm -hiv, in 10.2 it can't without bash-completion being installed. So, the patch is not required - a similar patch recreating the former behaviour of the bash package as such would be needed somewhere inside the bash sources. Or, alternatively, why isn't bash-completions installed as default? Thanks for caring for this. Best regards Dieter Jurzitza -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 ------- Comment #6 from dieter.jurzitza@t-online.de 2007-02-12 23:53 MST ------- Hi, have to revise my comment. The functionality is not consistent. In any case: On SuSE 9.3 and older this works "out of the box". Never experienced any issue with that. Tested on 4 different systems, none of them having bash-completions installed. The same holds true for SuSE 7.3 (one system). on SuSE 10.2 it works sometimes without your patch (given that bash-completions is installed), sometimes it does not. (tested on 2 different systems) I installed the patch now, currently it is working, however, due to the instability I've found I will recheck at home and will be back with a commentary soon. Thanks for looking into this, take care Dieter Jurzitza -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 ------- Comment #7 from mkoenig@novell.com 2007-02-16 03:29 MST ------- bash itself has only basic completion features. It does only a normal completion of filenames without any context sensitiveness. bash-completion does completion based on context. Since this needs more information it might slow down some shell features, so it is not installed by default. Also it might not be desired in all cases. So bash (without bash-completion) will complete even rpm -hiv selecting from all files. bash-completion will only select from *.rpm. This is not going to change and AFAIK it has never been any other way. All I can do is applying the patch to bash-completion. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242123 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|dieter.jurzitza@t-online.de | Resolution| |FIXED ------- Comment #8 from mkoenig@novell.com 2007-03-08 04:58 MST ------- fix submitted to stable -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com