about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-05-07 22:22:36 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-05-07 22:23:26 +0000
commit8498f8864e1a8f6991bd99c8068991a706cde436 (patch)
treef7b921939ab4e7b29650fa3173a27a5c3d9f6f33
parentab835f0c3792d228e848cac9beb904fca758e073 (diff)
downloadzsh-8498f8864e1a8f6991bd99c8068991a706cde436.tar.gz
zsh-8498f8864e1a8f6991bd99c8068991a706cde436.tar.xz
zsh-8498f8864e1a8f6991bd99c8068991a706cde436.zip
unposted: Use alternation patterns rather than brace expansion
(Cf. discussion on GitLab !12.)
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Debian/Command/_dscverify4
-rw-r--r--Completion/Unix/Command/_pandoc2
3 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b26ff83d4..bddfae9c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-05-07  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* unposted: Completion/Debian/Command/_dscverify,
+	Completion/Unix/Command/_pandoc: Use alternation patterns rather
+	than brace expansion
+
 2020-05-05  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 45764: Test/D07multibyte.ztst: Add a regression test for 45772.
diff --git a/Completion/Debian/Command/_dscverify b/Completion/Debian/Command/_dscverify
index 22ffc03b5..4d383c6c4 100644
--- a/Completion/Debian/Command/_dscverify
+++ b/Completion/Debian/Command/_dscverify
@@ -9,10 +9,10 @@ _dscverify() {
     '--help[show the help message and exit]'
     '--version[show the version + copyright and exit]'
     '--no-default-keyrings[do not check against the default keyrings]'
-    '*--keyring[add keyring to the list of keyrings used]:keyring:_files -g "*.{kbx,gpg}(-.)"'
+    '*--keyring[add keyring to the list of keyrings used]:keyring:_files -g "*.(kbx|gpg)(-.)"'
     '(--nosigcheck --no-sig-check -u)'{--nosigcheck,--no-sig-check,-u}'[do not verify the GPG signature]'
     '--verbose[do not suppress GPG output]'
-    '*:dsc file:_files -g "*.{changes,dsc,buildinfo}(-.)"'
+    '*:dsc file:_files -g "*.(changes|dsc|buildinfo)(-.)"'
   )
 
   local first_only=(
diff --git a/Completion/Unix/Command/_pandoc b/Completion/Unix/Command/_pandoc
index 29d3724e0..0c0672aaa 100644
--- a/Completion/Unix/Command/_pandoc
+++ b/Completion/Unix/Command/_pandoc
@@ -391,7 +391,7 @@ _arguments -C \
   '--epub-chapter-level=[specify the header level at which to split the EPUB into separate "chapter" files]:number:_pandoc_header_level' \
   '--pdf-engine=[use the specified engine when producing PDF output]:program:_pandoc_pdf_engine' \
   '*--pdf-engine-opt=[use the given string as a command-line argument to the pdf-engine]:string:_pandoc_pdf_engine_opts' \
-  '*--bibliography=[set the bibliography field in the document'"'"'s metadata to FILE]:file:{_files -g "*.{bib,bibtex,copac,json,yaml,enl,xml,wos,medline,mods,ris}"}' \
+  '*--bibliography=[set the bibliography field in the document'"'"'s metadata to FILE]:file:{_files -g "*.(bib|bibtex|copac|json|yaml|enl|xml|wos|medline|mods|ris)"}' \
   '--csl=[set the csl field in the document'"'"'s metadata to FILE]:file:{_files -g "*.csl"}' \
   '--citation-abbreviations=[set the citation-abbreviations field in the document'"'"'s metadata to FILE]:file:_files' \
   '--natbib[use natbib for citations in LaTeX output]' \