python: Fix print function compatibility.
[cascardo/ovs.git] / utilities / ovs-appctl-bashcomp.bash
index 0d83549..f7fb830 100755 (executable)
@@ -589,17 +589,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 +621,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