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
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
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
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
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?
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
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
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.