COMPREPLY=( $(compgen -W "$(echo $_COMP_WORDLIST | tr ' ' '\n' \
| sort -u | sed -e '/NO_EXPAN/d')" -- $cur) )
else
+ compopt -o nospace
# If there is no completions, just complete on file path.
- COMPREPLY=( $(compgen -o filenames -A file -- $cur) )
+ _filedir
fi
fi
return 0
}
-# Needed for the sorting of completions in display.
-export LC_ALL=C
-
# Debug mode.
if [ "$1" = "debug" ]; then
shift
complete -F _ovs_command_complete ovs-ofctl
complete -F _ovs_command_complete ovs-dpctl
complete -F _ovs_command_complete ovsdb-tool
-fi
\ No newline at end of file
+fi