Re: [Bash-completion-devel] scp remote path completion broken?

2009-09-20 Thread Freddy Vulto
Commit f733e71e should fix things: _get_cword is restored with the version from commit f6497298 as __get_cword3() for bash3. bash-4 now uses __get_cword4() which should solve scp's remote path completion on bash-4. Freddy ___ Bash-completion-devel

Re: [Bash-completion-devel] scp remote path completion broken?

2009-09-17 Thread Freddy Vulto
I've been mixing up bash-3 and bash-4 :-( But now I know, these are my findings: Commit f6497298 actually fixed quoted arguments under bash-3. Bug #474094 is actually fixed under bash-3, but reappears under bash-4 as it did at my box... It appears the contents of COMP_CWORDS has changed as of

Re: [Bash-completion-devel] scp remote path completion broken?

2009-09-16 Thread Freddy Vulto
I'm looking further into _get_cword, but COMP_CWORDS appears to behave differently depending on the bash-version. Can other people confirm this? Try this script: ---8-- _cword() { echo echo COMP_CWORD: $COMP_CWORD echo COMP_CWORDS: for

Re: [Bash-completion-devel] scp remote path completion broken?

2009-09-06 Thread Freddy Vulto
On Fri, Sep 4, 2009 at 11:50 PM, Ville Skyttäville.sky...@iki.fi wrote: scp's remote path completion appears broken to me - the : to _get_cword does not seem to affect anything and thus the hostname always disappears and things go south from there.  On a brief look, it seems to me that

Re: [Bash-completion-devel] scp remote path completion broken?

2009-09-06 Thread Freddy Vulto
On Sun, Sep 6, 2009 at 11:25 AM, David Paleinod.pale...@gmail.com wrote: Sorry for being of totally no help. Good to have you back though ;-) Maybe this bug has something to do with it: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474094 It's closed but I can still reproduce the bug?

Re: [Bash-completion-devel] scp remote path completion broken?

2009-09-06 Thread Ville Skyttä
On Sunday 06 September 2009, Freddy Vulto wrote: On Fri, Sep 4, 2009 at 11:50 PM, Ville Skyttäville.sky...@iki.fi wrote: scp's remote path completion appears broken to me - the : to _get_cword does not seem to affect anything and thus the hostname always disappears and things go south from

Re: [Bash-completion-devel] scp remote path completion broken?

2009-09-06 Thread Freddy Vulto
On Sun, Sep 6, 2009 at 5:27 PM, Ville Skyttäville.sky...@iki.fi wrote: If nobody can remember/decipher exactly what the problematic commit was supposed to fix, I suggest we just revert it and see what breaks. +1, committed e663e1c `_get_cword' is reverted to before commit f6497298. This fixes

[Bash-completion-devel] scp remote path completion broken?

2009-09-04 Thread Ville Skyttä
Hello, scp's remote path completion appears broken to me - the : to _get_cword does not seem to affect anything and thus the hostname always disappears and things go south from there. On a brief look, it seems to me that _get_cword doesn't actually do anything with the argument given to it.