Tidied getopts-check loop in _known_hosts_real

This commit is contained in:
Freddy Vulto 2009-06-20 09:34:46 +02:00
parent 362090a160
commit 8858c8df33

View File

@ -1085,7 +1085,7 @@ _known_hosts_real()
esac
done
[ $# -ge $OPTIND ] && echo "error: $FUNCNAME("$@"): unprocessed arguments:"\
$(while [ $# -gt 0 ]; do echo ${!OPTIND}; shift; done)
$(while [ $# -ge $OPTIND ]; do echo ${!OPTIND}; shift; done)
[[ $cur == *@* ]] && user=${cur%@*}@ && cur=${cur#*@}
kh=()