Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#514955: patch completion broken: bad set of key/value pairs for associative array



2009/2/12 Clint Adams <schizo@xxxxxxxxxx>:
> On Thu, Feb 12, 2009 at 10:16:34AM +0100, martin f krafft wrote:
>> piper:~|master|.tmp/cdt.lalFLHgV/puppet-0.24.7% patch lib/<TAB>
>> _patch:11: bad set of key/value pairs for associative array
>> _patch:11: bad set of key/value pairs for associative array
>> _patch:11: bad set of key/value pairs for associative array
>> _patch:11: bad set of key/value pairs for associative array
>> piper:~|master|.tmp/cdt.lalFLHgV/puppet-0.24.7% patch lib/
>
> Oops.
>
> Index: Completion/Unix/Command/_patch
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_patch,v
> retrieving revision 1.3
> diff -u -r1.3 _patch
> --- Completion/Unix/Command/_patch      29 Jan 2009 15:54:43 -0000      1.3
> +++ Completion/Unix/Command/_patch      12 Feb 2009 18:41:06 -0000
> @@ -113,7 +113,8 @@
>     '* --use-index-line *' '--use-index-line[deal with Index: line]'
>     '* --patch-root=DIR *' '--patch-root=[restrict paths]:patch root:_files -/'
>
> -    '* -U  --unified-reject-files *' '(-U --unified-reject-files)'{-U,--unified-reject-files}'[create unified reject files]'
> +    '* -U *' '(--unified-reject-files)-U[create unified reject files]'
> +    '* --unified-reject-files *' '(-U)--unified-reject-files}[create unified reject files]'
>     '* --global-reject-file=file *' '--global-reject-file=[put all rejects into one file]:file:_files'
>   )
>   _patch_args=(

There's a stray } there.

diff --git a/Completion/Unix/Command/_patch b/Completion/Unix/Command/_patch
--- a/Completion/Unix/Command/_patch
+++ b/Completion/Unix/Command/_patch
@@ -114,7 +114,7 @@ if (( ! $+_patch_args )); then
     '* --patch-root=DIR *' '--patch-root=[restrict paths]:patch root:_files -/'

     '* -U *' '(--unified-reject-files)-U[create unified reject files]'
-    '* --unified-reject-files *' '(-U)--unified-reject-files}[create
unified reject files]'
+    '* --unified-reject-files *' '(-U)--unified-reject-files[create
unified reject files]'
     '* --global-reject-file=file *' '--global-reject-file=[put all
rejects into one file]:file:_files'
   )
   _patch_args=(


-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author