]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: fix zsh completion to not alter global environment
authorVincent Bernat <vincent@bernat.ch>
Sun, 8 Dec 2019 06:02:49 +0000 (07:02 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 8 Dec 2019 06:02:49 +0000 (07:02 +0100)
src/client/completion/_lldpcli

index a7b6b3b922db6de9d93eafb045f03dc151415aca..4ab5fe43707748f0e4322a090975ee6ec0e0a10d 100644 (file)
@@ -25,6 +25,8 @@ __lldpcli_command () {
 }
 
 _lldpcli () {
+    local context state state_descr line
+    typeset -A opt_args
     _arguments -C \
         '*-d[print more debugging information]' \
         '(- *)-v[print version number and exit]' \