about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2022-11-17 21:10:28 +0100
committerOliver Kiddle <opk@zsh.org>2022-11-17 21:10:28 +0100
commite4aeb3b911d1909a4d150ec832159b97ebec2a40 (patch)
treed42dd59a0b771168c4496646b7f0dac8a3f5223f
parentdbefe08f3ef9921c2e02e481659f3caa5e8aabe9 (diff)
downloadzsh-e4aeb3b911d1909a4d150ec832159b97ebec2a40.tar.gz
zsh-e4aeb3b911d1909a4d150ec832159b97ebec2a40.tar.xz
zsh-e4aeb3b911d1909a4d150ec832159b97ebec2a40.zip
unposted (c.f. Norikatsu Shigemura: github #96): add missing local declaration
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_cut3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c4a88f053..c0fe24965 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2022-11-17  Oliver Kiddle  <opk@zsh.org>
 
+	* unposted (c.f. Norikatsu Shigemura: github #96):
+	Completion/Unix/Command/_cut: add missing local declaration
+
 	* github #87: Matt Koscica: Completion/Unix/Command/_tmux:
 	update options tmux 3.4
 
diff --git a/Completion/Unix/Command/_cut b/Completion/Unix/Command/_cut
index d3b1e2b10..29565280d 100644
--- a/Completion/Unix/Command/_cut
+++ b/Completion/Unix/Command/_cut
@@ -1,6 +1,7 @@
 #compdef cut gcut
 
 typeset -A _cut_args
+local -a args
 
 case $LANG in
   (de_DE.UTF-8)
@@ -45,7 +46,7 @@ if _pick_variant gnu="Free Soft" unix --version; then
     '*:file:_files'
 else
   case $OSTYPE in
-    freebsd*|dragonfly*) args+=( '(-d)-w[use whitespace as the delimiter]' ) ;;
+    freebsd*|dragonfly*) args=( '(-d)-w[use whitespace as the delimiter]' ) ;;
   esac
   _arguments $args \
     "-b[${_cut_args[bytes]}]:list" \