[Bug 390370] New: bash completions broken
https://bugzilla.novell.com/show_bug.cgi?id=390370 Summary: bash completions broken Product: openSUSE 11.0 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- I like using completions with fiel pattern etc. and once in a while with 11.0-beta I noticed that completions do not work anymore as expected. current example: cd /var/log/YaST2 grep desktop-data-openSUSE *RPM*<TAB> or grep desktop-data-openSUSE RPM*<TAB> does just beep -- though there is exactly one match! trying echo grep desktop-data-openSUSE *RPM*<TAB> or : grep desktop-data-openSUSE *RPM*<TAB> : grep desktop-data-openSUSE RPM*<TAB> etc. all expand to y2logRPM as expected. I never played with "complete" myself, so very likely it's a problem with your new bash setup ?! YaST2 # complete | grep " grep" complete -o filenames -F _longopt grep now, looking for that completion stuff that huge new file /etc/bash_completion in 11.0 makes me a bit nervous! IMHO it's not the best of all ideas to add/change such many magic shell settings/preferences! 1st it's asking for bugs and trouble (see above) and 2nd it can just piss old users if you change and break old bahaviour without _*very*_ good reason!! please keep that creeping featureism to the colourful clicking GUIs like KDE and keep the command line envvironment in a sane and compatible way! .. while typing this rant a 2nd completion problem pops up again: rpm: rpm -r /ol<TAB> does only beep while there is the only available completion "/old/". ok, the complete stuff doesn't know about "-r" option rpm -<TAB> shows (only) -F -U -V -b -e -i -q -t even worse: rpm -r /old -qf /etc/pass<TAB> only beeps while rpm -qf /etc/pass<TAB> expands to /etc/passwd as expected ! worse^2: rpm -qf /etc/*pass*<TAB><TAB> again only beeps and does _not_ show all possible completions anymore while echo rpm -qf /etc/*pass*<TAB><TAB> : rpm -qf /etc/*pass*<TAB><TAB> work/display as expected for me this reall breaks bash because I can't probe anymore for files/patterns and it can cause unwanted command execution because of wrong information about presence/absence of files! BAD BAD BAD!!! e.g. extraplating from the grep experiance above let's see what's available for "rm" : etc # complete | grep " rm" complete -o filenames -F _longopt rmdir complete -F _rmmod rmmod complete -o filenames -F _longopt rm the last line looks very similar to the grep thing above, so if # rm -rf /*b*<TAB><TAB> just beeps to signal no single match I can safely press <ENTER>, can't I ???? -- 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=390370
User coolo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390370#c1
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=390370
User koenig@linux.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=390370#c2
Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=390370
User coolo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390370#c3
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=390370
User koenig@linux.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=390370#c4
--- Comment #4 from Harald Koenig
An interim version of zypper recommended bash-completion - which dragged it into the install of quite some beta testers (and it's hard to get rid of it :).
oh, my druggist just recommends rpm -e bash-completionDONTPRESSTABHERE:-
But I think the maintainer agrees with dropping by now ;)
thanks! -- 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=390370
User mkoenig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390370#c5
Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=390370
Matthias Koenig
https://bugzilla.novell.com/show_bug.cgi?id=390370
User sndirsch@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390370#c7
Stefan Dirsch
participants (1)
-
bugzilla_noreply@novell.com