The following commit has been merged in the master branch:
commit 2a5a1d68d924a047adedaa253434d0b3e9b9a674
Author: Ville Skyttä <[email protected]>
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=( "${comprep...@]}" $( \
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:] <<<${optio...@]/#/$dash}
- )" -- "$( tr [:upper:] [:lower:] <<<"$cur" )" ) )
+ COMPREPLY=( $( compgen -W \
+ "$( tr [:upper:] [:lower:] <<<${optio...@]/#/$dash} )" \
+ -- "$( tr [:upper:] [:lower:] <<<"$cur" )" ) )
fi
else
_known_hosts_real "$cur"
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits