Bugs item #312695, was opened at 2010-09-06 01:33
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312695&group_id=100114

Status: Open
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Completion about IPv6 address does not work properly 
Distribution: Fedora / Red Hat
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
Anonymous message posted by kun...@users.sourceforge.net

I used bash-completion and ssh on IPv6 environment, then I
expected a completion as follows.

$ ssh fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:5555

But actually I got a completion as follows.

$ ssh fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx

When last 16 bits of IPv6 address contains only digits, this
problem occurs.

I tried to make a patch of this problem.

--- /etc/bash_completion.orig   2010-06-17 00:44:20.000000000 +0900
+++ /etc/bash_completion        2010-09-06 09:37:17.485440380 +0900
@@ -1279,7 +1279,7 @@
             /^\s*[^|\#]/ {for (i=1; i<=2; ++i) { \
             gsub(" .*$", "", $i); \
             gsub("[\\[\\]]", "", $i); \
-            gsub(":[0-9]+$", "", $i); \
+            if ($i ~ /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9]+/) 
{gsub(":[0-9]+$", "", $i)}; \
             if ($i ~ /'"$awkcur"'/) {print $i} \
             }}' "${...@]}" 2>/dev/null ) )
         fi



----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312695&group_id=100114

_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel

Reply via email to