[Pkg-zsh-devel] Bug#953389: Bug#953389: Bug#953389: zsh-common: completion for dscverify is missing
    Daniel Shahaf 
    danielsh at apache.org
       
    Mon Mar  9 15:54:01 GMT 2020
    
    
  
Control: forwarded -1 workers/45524
Romain Porte wrote on Mon, 09 Mar 2020 14:45 +00:00:
> 09/03/2020 15:04, Daniel Shahaf :
> >> +    '*:dsc file:_files -g "*.{changes,dsc}(-.)"'
> > In this line —
> >
> > 1. You may need to change «{foo,bar}» to «(foo|bar)» to avoid NO_MATCH errors
> > when foo exists but bar doesn't.  (Once you do this, you may then need to
> > change «(-.)» to «(#q-.)».)
> Tried this change locally, and the completion was not working anymore.
> Back to the v2 version, when I "rm *.dsc" in a test directory so that
> only *.changes files are present, I did not get any NO_MATCH error. The
> completion just went fine on *.changes files. Maybe I am missing
> something, but this modification is not included in attached v3 patch
> (version I am sending to zsh-workers).
+1.  I think the reason it works with brace expansion is that compinit
sets the NULLGLOB option (in $_comp_options).  TIL :-)
I'll merge the patch upstream after giving -workers@ a chance to review.
Cheers,
Daniel
    
    
More information about the Pkg-zsh-devel
mailing list