X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=bash_completion;h=88b37dc28fb0dc175f48ac9fa364f26a434bedde;hp=c8236f80cf589dacce0874251d477aeab23cd5a7;hb=089fb2fb2d9e2a3473aa6fac91681ca8ddfffff3;hpb=d31995b3074bb19aa4da66ce5c4774ca9ed101a1 diff --git a/bash_completion b/bash_completion index c8236f80..88b37dc2 100644 --- a/bash_completion +++ b/bash_completion @@ -1,15 +1,11 @@ # Copyright (C) 2007 Andre Noll , see file COPYING. -para_complete() +_para_complete() { local prg="$1" # the program to execute local cur=${COMP_WORDS[$COMP_CWORD]} 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]") {