dav_completion() {
	OUT=$( /export/home/olaf/Projekte/dav/build/dav complete $COMP_CWORD "${COMP_WORDS[@]}" )
	CMD_RES=$?
	if [ $CMD_RES == 10 ]; then
		compopt -o nospace
	fi
	if [ $CMD_RES == 12 ]; then
		compopt -o default
		COMPREPLY=()
	else
		TMP_IFS=$IFS
		IFS='
		'
		COMPREPLY=( $OUT )
		IFS=$TMP_IFS
	fi
}

