Re: compgen gets confused when trying to complete ambiguous special char

2008-03-17 Thread Mika Fischer
* Chet Ramey <[EMAIL PROTECTED]> [2008-03-17 22:57]: >> Can you elaborate on the differences in case they're the cause of other >> strange behaviours? > > 1. Backslashes should not be stripped within single quotes. > > 2. Backslashes should only be stripped within double quotes if they're > f

Re: compgen gets confused when trying to complete ambiguous special char

2008-03-17 Thread Chet Ramey
Mika Fischer wrote: * Chet Ramey <[EMAIL PROTECTED]> [2008-03-17 18:47]: For historical reasons, complete/compgen dequote the filename they're passed, removing backslash escapes and interpreting embedded quoted substrings. Yes. I've run into this problem now several times while trying to fix t

Re: compgen gets confused when trying to complete ambiguous special char

2008-03-17 Thread Mika Fischer
* Chet Ramey <[EMAIL PROTECTED]> [2008-03-17 18:47]: > For historical reasons, complete/compgen dequote the filename they're > passed, removing backslash escapes and interpreting embedded quoted > substrings. Yes. I've run into this problem now several times while trying to fix the bugs in bash_co

Re: compgen gets confused when trying to complete ambiguous special char

2008-03-17 Thread Chet Ramey
Mika Fischer wrote: Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share

compgen gets confused when trying to complete ambiguous special char

2008-03-16 Thread Mika Fischer
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba