[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2a5a1d68d924a047adedaa253434d0b3e9b9a674

Ville Skyttä ville.skytta at iki.fi
Sun Jan 3 19:23:17 UTC 2010


The following commit has been merged in the master branch:
commit 2a5a1d68d924a047adedaa253434d0b3e9b9a674
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Jan 3 21:18:41 2010 +0200

    Fix some syntax errors.
    
    For some reason, these constructs got flagged as syntax errors at load
    time with bash 4.0.33(0)-release on FreeBSD 8.0 whereas they work
    elsewhere I've tested (e.g. 4.0.23(1)-release on Fedora Core 11).

diff --git a/bash_completion b/bash_completion
index 05f1293..6b2f28f 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1390,7 +1390,7 @@ _known_hosts_real()
         COMPREPLY=( "${COMPREPLY[@]}" $( \
             compgen -P "$prefix$user" -S "$suffix" -W \
             "$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \
-                 awk -F\; '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
+                 awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
     fi
 
     # Add results of normal hostname completion, unless
diff --git a/contrib/vncviewer b/contrib/vncviewer
index dd78c64..0701929 100644
--- a/contrib/vncviewer
+++ b/contrib/vncviewer
@@ -113,9 +113,9 @@ _xvnc4viewer()
         else
             # Variable 'nocasematch' isn't available;
             # Convert completions to lowercase
-            COMPREPLY=( $( compgen -W "$(
-                tr [:upper:] [:lower:] <<<${options[@]/#/$dash}
-                )" -- "$( tr [:upper:] [:lower:] <<<"$cur" )" ) )
+            COMPREPLY=( $( compgen -W \
+                "$( tr [:upper:] [:lower:] <<<${options[@]/#/$dash} )" \
+                -- "$( tr [:upper:] [:lower:] <<<"$cur" )" ) )
         fi
     else
         _known_hosts_real "$cur"

-- 
bash-completion



More information about the Bash-completion-commits mailing list