Public bug reported:

Binary package hint: bash-completion

I'm using a completion function to complete the argument to `0launch` from a 
list of known URLs. Given the input 'http://g', my COMPREPLY array contains the 
following array (each line is an element):
http://gfxmonk.net/dist/0install/appengine-auth.xml
http://gfxmonk.net/dist/0install/dbus-python.xml
http://git.savannah.gnu.org/cgit/parallel.git/plain/packager/0install/parallel.xml

When I press tab twice, bash shows me the following possible completions
(since all options start with what I've already entered):

$ 0launch 'http://g<tab><tab>
    appengine-auth.xml                  dbus-python.xml            parallel.xml

This is not the correct list of completions, it seems to be displaying
only the part of each completion after the final "/". If I actually
typed the first letter from one of these options, it would be wrong (and
would not complete any further).

Note that there seems to be nothing wrong with the contents of the
COMPREPLY array itself, as when I type:

$ 0launch 'http://gf<tab>

It successfully completes the argument to the longest common prefix,
which is 'http://gfxmonk.net/dist/0install/

Bash version: 1:1.2-2ubuntu1
Ubuntu version: 10.10

I initially tried to report this upstream, because I doubt it's ubuntu 
specific. I posted it to 
https://alioth.debian.org/tracker/index.php?func=detail&aid=312825&group_id=100114&atid=413095
 but:
 - I couldn't log in properly
 - My line breaks got removed
 - I can't add any further comments

So it seems I've made a bit of a mess of that. Hopefully someone here
can help, or at least knows how to use the upstream bug tracker? ;)

** Affects: bash-completion (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bash completion slash special-characters

** Description changed:

  Binary package hint: bash-completion
  
  I'm using a completion function to complete the argument to `0launch` from a 
list of known URLs. Given the input 'http://g', my COMPREPLY array contains the 
following array (each line is an element):
  http://gfxmonk.net/dist/0install/appengine-auth.xml
  http://gfxmonk.net/dist/0install/dbus-python.xml
  
http://git.savannah.gnu.org/cgit/parallel.git/plain/packager/0install/parallel.xml
  
  When I press tab twice, bash shows me the following possible completions
  (since all options start with what I've already entered):
  
  $ 0launch 'http://g<tab><tab>
-     appengine-auth.xml                  dbus-python.xml            
parallel.xml
+     appengine-auth.xml                  dbus-python.xml            
parallel.xml
  
  This is not the correct list of completions, it seems to be displaying
  only the part of each completion after the final "/". If I actually
  typed the first letter from one of these options, it would be wrong (and
  would not complete any further).
  
  Note that there seems to be nothing wrong with the contents of the
  COMPREPLY array itself, as when I type:
  
  $ 0launch 'http://gf<tab>
  
  It successfully completes the argument to the longest common prefix,
  which is 'http://gfxmonk.net/dist/0install/
  
  Bash version: 1:1.2-2ubuntu1
  Ubuntu version: 10.10
  
  I initially tried to report this upstream, because I doubt it's ubuntu 
specific. I posted it to 
https://alioth.debian.org/tracker/index.php?func=detail&aid=312825&group_id=100114&atid=413095
 but:
-  - I couldn't log in properly
-  - My line breaks got removes
-  - I can't add any further comments
+  - I couldn't log in properly
+  - My line breaks got removed
+  - I can't add any further comments
  
  So it seems I've made a bit of a mess of that. Hopefully someone here
  can help, or at least knows how to use the upstream bug tracker? ;)

-- 
completion displays incorrect choices when COMPREPLY words contain "/" 
characters after the longest common prefix
https://bugs.launchpad.net/bugs/674756
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to