[Bug 738501] New: bash: completion of ~/subdir is wrong
https://bugzilla.novell.com/show_bug.cgi?id=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c0 Summary: bash: completion of ~/subdir is wrong Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dr.tino.k@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 for example less ~/Mai completes to less ~/Mail but it doesn't add a slash at the end. Temporary workaround: $ complete -o bashdefault -o default -o dirnames -o nospace less ie, remove the -F _exp_ flag. So presumably there's an issue with the function _exp_ () in /etc/profile.d/complete.bash? Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |werner@suse.com |ovo.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.
https://bugzilla.novell.com/show_bug.cgi?id=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c1 --- Comment #1 from Dr. Werner Fink <werner@suse.com> 2012-01-13 09:34:58 UTC --- Created an attachment (id=471083) --> (http://bugzilla.novell.com/attachment.cgi?id=471083) current /etc/profile.d/complete.bash Please run the updates of the packages of 12.1 as I'm not able to reproduce. You may also recheck with this attachment afterwards if this issue hapens again. But not, you should not have bash-completion installed. -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |dr.tino.k@gmail.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.
https://bugzilla.novell.com/show_bug.cgi?id=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c2 --- Comment #2 from Tino K <dr.tino.k@gmail.com> 2012-01-25 11:20:03 UTC --- Not sure why you can't reproduce, I don't think I have modified my system much and it is also updated. Your attached file is also identical with the one installed on my system. Not sure where to go from here just a final remark, maybe there's a "-d" missing in the "complete" command line? On opensuse 12.1: $ complete | grep less complete -o bashdefault -o default -o dirnames -o nospace -F _exp_ less On a opensuse 11.2: $ complete | grep less complete -o default -o filenames -d -F _exp_ less That made me try the "-d" flag in opensuse 12.1 as well. The default behaviour is as before $ less ~/b<tab> # expands to: less ~/bin But then after adding the "-d" flag $ complete -o bashdefault -o default -o dirnames -o nospace -d -F _exp_ less I get the desired behaviour: $ less ~/b<tab> # expands to: less ~/bin/ -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c3 --- Comment #3 from Dr. Werner Fink <werner@suse.com> 2012-01-25 11:48:16 UTC --- There are other problems with `-d' aka `-A directory' compare with bug #706075 and bug #703682 -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c4 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|dr.tino.k@gmail.com | Resolution| |FIXED --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2012-03-06 14:54:39 UTC --- Should be fixed now. -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-03-06 16:00:08 CET --- This is an autogenerated message for OBS integration: This bug (738501) was mentioned in https://build.opensuse.org/request/show/108186 Factory / aaa_base -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c6 Jean Delvare <jdelvare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jdelvare@suse.com --- Comment #6 from Jean Delvare <jdelvare@suse.com> 2012-03-08 14:27:25 UTC --- *** Bug 751014 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=751014 -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c7 --- Comment #7 from Jean Delvare <jdelvare@suse.com> 2012-03-08 14:45:29 UTC --- If there ever is a maintenance update for package aaa_base in 12.1, it would be great to include the fix for this bug, as it is quite annoying. 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c8 Jean Delvare <jdelvare@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #8 from Jean Delvare <jdelvare@suse.com> 2012-03-09 16:11:29 UTC --- It seems the fix broke something else :( Now completion of paths _not_ starting with ~ is bogus: $ vi Documents<TAB> Documents/ Documents// So I have to type the trailing / manually. And again, dropping -F _exp_ from the complete rule solves the issue. -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c9 --- Comment #9 from Dr. Werner Fink <werner@suse.com> 2012-03-09 16:21:22 UTC --- Always the same ... bash complition sucks, this is the plusdirs option which does help in one use case but breaks an other use case. -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c10 --- Comment #10 from Dr. Werner Fink <werner@suse.com> 2012-03-09 16:58:36 UTC ---
compgen -f -X '!*' -o plusdirs -- Doku Dokus Dokus
the same holds true for -d -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c11 --- Comment #11 from Swamp Workflow Management <swamp@suse.de> 2012-04-02 11:11:18 UTC --- openSUSE-RU-2012:0454-1: An update that has four recommended fixes can now be installed. Category: recommended (low) Bug References: 725657,732934,738501,752422 CVE References: Sources used: openSUSE 12.1 (src): aaa_base-12.1-534.113.1, bash-4.2-1.11.1 -- 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=738501 https://bugzilla.novell.com/show_bug.cgi?id=738501#c12 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #12 from Dr. Werner Fink <werner@suse.com> 2012-10-17 10:02:32 UTC --- done -- 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.
participants (1)
-
bugzilla_noreply@novell.com