Re: Resolving quoted COMP_CWORD on bash-4

2009-09-27 Thread Chet Ramey
Freddy Vulto wrote: > I just found a corner case bug, but that seems to be in bash-3 as > well. The command: > >$ b' > > doesn't complete with commands but with local filenames, although this > is a valid command: > >$ b'ash' That will never work. It's fundamental readline behavior t

Re: Resolving quoted COMP_CWORD on bash-4

2009-09-27 Thread Freddy Vulto
The patch seems to to work all right. I've tested nested strings and they all return the right CWORD with bash-4.0.33 patched: $ a foo'bar# Returns foo'bar $ a "foo'' bar # Returns "foo'' bar I just found a corner case bug, but that seems to be in bash-3 as well. The command: $

Re: Resolving quoted COMP_CWORD on bash-4

2009-09-26 Thread Chet Ramey
> Bash Version: 4.0 > Patch Level: 28 > Release Status: release > > On bash-4, when completing: > > $ a 'b c > > The COMP_CWORD variables contain: > > COMP_CWORD: 3 > COMP_CWORDS: > 0: a > 1: ' > 2: b > 3: c > > Whereas on bash-3 they contained: > > COMP_CWORD:

Re: Resolving quoted COMP_CWORD on bash-4

2009-09-18 Thread Chet Ramey
Freddy Vulto wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i686 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' > -DCONF_VENDOR='pc' -DLOCALEDIR='

Resolving quoted COMP_CWORD on bash-4

2009-09-17 Thread Freddy Vulto
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE