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