Hi Emilio,

> Hi,
> 
> The bash_completion file contains a dash in the function name, which may
> create problems on Bash 2 and on POSIX mode Bash.
> 
> See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=304624#15
> 
> The fix is trivial, just change _rdiff-backup () to _rdiff_backup.
> See the following patch:
> 
> --- debian/config/bash-completion.old 2009-06-02 19:46:39.000000000 +0200
> +++ debian/config/bash-completion     2009-06-02 19:46:54.000000000 +0200
> @@ -11,7 +11,7 @@
>  
>  shopt -s extglob
>  
> -_rdiff-backup ()
> +_rdiff_backup ()
>  {
>       local cur prev wfilearg wpatharg wnumarg wotherarg longopts shortopts 
> options
>       COMPREPLAY=()
> @@ -94,4 +94,4 @@ _rdiff-backup ()
>       fi
>  }
>  
> -complete -F _rdiff-backup -o filenames rdiff-backup
> +complete -F _rdiff_backup -o filenames rdiff-backup
> 
> 
> Cheers,
> Emilio

Thanks for the feedback. Such a cooperation is greatly appreciated :)

Bye,
-- 
Carl Chenet






-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to