From 2a5a1d68d924a047adedaa253434d0b3e9b9a674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 3 Jan 2010 21:18:41 +0200 Subject: [PATCH] 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). --- bash_completion | 2 +- contrib/vncviewer | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bash_completion b/bash_completion index 05f12936..6b2f28f7 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 dd78c644..0701929e 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"