[Bug 706075] New: bash completion expands double quoted (") paths wrong
https://bugzilla.novell.com/show_bug.cgi?id=706075 https://bugzilla.novell.com/show_bug.cgi?id=706075#c0 Summary: bash completion expands double quoted (") paths wrong Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: DOlsson@WEB.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Seems that I have found yet another bug in "/etc/profile.d/complete.bash" (this is a spin-off from Bug 703682): Having the following file structure: $ ls applications-kmenuedit.menu applications-merged $ tree applications-merged/ applications-merged/ └── wine-Programs-VMware-VMware vSphere Client.menu $ vi "a<tab> applications-kmenuedit.menu applications-merged/ $ vi "applications-m<tab> => $ vi "applications-merged/" => delete the " before using <tab> => $ vi "applications-merged/<tab> => $ vi "applications-merged/wine-Programs-VMware-VMware\ vSphere\ Client.menu" The problem here is that the back-slashes get inserted. Normally, they should, but not when using quotes ("), or the quotes should be removed -- you cannot use both. In the above case it means that you are trying to edit a file named "applications-merged/wine-Programs-VMware-VMware\ vSphere\ Client.menu" instead of editing the existing file: "applications-merged/wine-Programs-VMware-VMware vSphere Client.menu" Reproducible: Always Steps to Reproduce: 1. See above Actual Results: vi "applications-merged/wine-Programs-VMware-VMware\ vSphere\ Client.menu" Expected Results: Either, where (a) is my preferred version: (a) vi "applications-merged/wine-Programs-VMware-VMware vSphere Client.menu" or (b) vi applications-merged/wine-Programs-VMware-VMware\ vSphere\ Client.menu -- 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=706075 https://bugzilla.novell.com/show_bug.cgi?id=706075#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |werner@novell.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=706075 https://bugzilla.novell.com/show_bug.cgi?id=706075#c1 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Enhancement --- Comment #1 from Dr. Werner Fink <werner@novell.com> 2011-07-18 12:23:35 UTC --- simply do not use the double quote and it works:
mkdir /tmp/applications-merged touch /tmp/applications-merged/wine-Programs-VMware-VMware\ vSphere\ Client.menu vi /tmp/ap<TAB> vi /tmp/applications-merged/<TAB> vi /tmp/applications-merged/wine-Programs-VMware-VMware\ vSphere\ Client.menu
.. -- 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=706075 https://bugzilla.novell.com/show_bug.cgi?id=706075#c2 --- Comment #2 from Dennis Olsson <DOlsson@WEB.de> 2011-07-18 16:14:44 CEST --- Well, yes, I know, but this is only a work-around, not the solution. And, besides, when using "cd", it works! $ mkdir "/tmp/applications-merged/dir with spaces" $ cd "/tmp/ap<tab> => $ cd "/tmp/applications-merged/t<tab> => $ cd "/tmp/applications-merged/test med space"/ In fact, it not only works, it also handles the ending of the quoting correctly, i.e. the completed path is ended with directory or file indication: $ cd "/tmp/applications-merged/w<TAB> => $ cd "/tmp/applications-merged/wine-Programs-VMware-VMware vSphere Client.menu" So, while it is possible to have a correct path completion using "cd/mkdir/pushd", it is obvious a *bug* that one cannot have this (and not an enhancement), when using completion with other commands. -- 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=706075 https://bugzilla.novell.com/show_bug.cgi?id=706075#c3 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2011-07-18 14:15:44 UTC --- Add better support for quoted file and directory names .. nevertheless the programable completion support of the bash remains being a nightmare -- 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=706075 https://bugzilla.novell.com/show_bug.cgi?id=706075#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-07-18 17:00:18 CEST --- This is an autogenerated message for OBS integration: This bug (706075) was mentioned in https://build.opensuse.org/request/show/76423 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.
participants (1)
-
bugzilla_noreply@novell.com