]> git.proxmox.com Git - mirror_ovs.git/blobdiff - utilities/ovs-appctl-bashcomp.bash
ovs-vsctl: Add datapath_type column to show command.
[mirror_ovs.git] / utilities / ovs-appctl-bashcomp.bash
index 0d83549ad283e07342c79cc7145be0fc60b8aab8..4384be8ae10e4f52929d19d26e3e9709ac3c03ad 100755 (executable)
@@ -1,4 +1,3 @@
-#!/bin/bash
 #
 # A bash command completion script for ovs-appctl.
 #
@@ -589,17 +588,15 @@ _ovs_command_complete() {
           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
@@ -623,4 +620,4 @@ else
     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