]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - bash_completion
server: Fix return value of com_ff().
[paraslash.git] / bash_completion
index 51bbc68e0d6b39dded6889d69d6da8078c930634..3dd25e5ae6d1630996ca005cf328cfefc846581a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2011 Andre Noll <maan@systemlinux.org>
+# Copyright (C) 2007 Andre Noll <maan@tuebingen.mpg.de>
 #
 # Licensed under the GPL v2. For licencing details see COPYING.
 
@@ -9,10 +9,6 @@ _para_complete()
        local line="$COMP_LINE" OLD_IFS="$IFS"
        local opts n
 
-       if [[ "$COMP_WORDBREAKS" != ' '  ]]; then
-               COMP_WORDBREAKS=' '
-               return 124 # try again with proper value
-       fi
        # This extracts short and long options from the help output
        local script='{
                if ($1 ~ "-[a-zA-Z]," && $2 ~ "--[a-zA-Z]") {
@@ -89,13 +85,13 @@ _para_complete()
 
 _para_audioc()
 {
-       _para_complete ~maan/para/para_audioc
+       _para_complete para_audioc
 }
 complete -F _para_audioc para_audioc
 
 _para_client()
 {
-       _para_complete ~maan/para/para_client
+       _para_complete para_client
 }
 complete -o default -o nospace -F _para_client para_client
 complete -o default -o nospace -F _para_client para