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).
This commit is contained in:
parent
2cf62de308
commit
2a5a1d68d9
@ -1390,7 +1390,7 @@ _known_hosts_real()
|
|||||||
COMPREPLY=( "${COMPREPLY[@]}" $( \
|
COMPREPLY=( "${COMPREPLY[@]}" $( \
|
||||||
compgen -P "$prefix$user" -S "$suffix" -W \
|
compgen -P "$prefix$user" -S "$suffix" -W \
|
||||||
"$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \
|
"$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \
|
||||||
awk -F\; '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
|
awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add results of normal hostname completion, unless
|
# Add results of normal hostname completion, unless
|
||||||
|
@ -113,9 +113,9 @@ _xvnc4viewer()
|
|||||||
else
|
else
|
||||||
# Variable 'nocasematch' isn't available;
|
# Variable 'nocasematch' isn't available;
|
||||||
# Convert completions to lowercase
|
# Convert completions to lowercase
|
||||||
COMPREPLY=( $( compgen -W "$(
|
COMPREPLY=( $( compgen -W \
|
||||||
tr [:upper:] [:lower:] <<<${options[@]/#/$dash}
|
"$( tr [:upper:] [:lower:] <<<${options[@]/#/$dash} )" \
|
||||||
)" -- "$( tr [:upper:] [:lower:] <<<"$cur" )" ) )
|
-- "$( tr [:upper:] [:lower:] <<<"$cur" )" ) )
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_known_hosts_real "$cur"
|
_known_hosts_real "$cur"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user