summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2022-05-08 05:47:24 +0200
committerAxel Beckert <abe@deuxchevaux.org>2022-05-08 05:47:24 +0200
commit5615b53bbf3578a91bab8658b38d0352433510e7 (patch)
treebdf29751a810afd43ab7497d47229ba64d5707e8 /Completion/Unix/Command
parent514524ee7be382a740e53e2a7c0247f2d68d7730 (diff)
parent9529af723604dfe1c8152db11e1d216621c898d5 (diff)
downloadzsh-5615b53bbf3578a91bab8658b38d0352433510e7.tar.gz
zsh-5615b53bbf3578a91bab8658b38d0352433510e7.zip
Update upstream source from tag 'upstream/5.8.1.3-test'
Update to upstream version '5.8.1.3-test' with Debian dir db59cf6a81e7a92e349f815dc21759ccb7ed689a
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_getopt7
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_getopt b/Completion/Unix/Command/_getopt
index 3359818b5..a8b0f6fc9 100644
--- a/Completion/Unix/Command/_getopt
+++ b/Completion/Unix/Command/_getopt
@@ -2,9 +2,10 @@
local -a args aopts
-# Note: BusyBox getopt is borrowed straight from util-linux, so they're
-# basically identical
-if _pick_variant busybox=BusyBox util-linux='getopt*enhanced' unix --version; then
+# @todo BusyBox getopt is borrowed straight from util-linux, so they're nearly
+# identical, but not quite: BusyBox doesn't have -h and -V and often doesn't
+# support long options. So possibly this could be more accurate
+if _pick_variant busybox=BusyBox util-linux='(enhanced|util-linux)' unix --version; then
args=(
'(-a --alternative)'{-a,--alternative}'[allow long options with single -]'
'(: -)'{-h,--help}'[display help information]'