From 8b455d28e7d4df5f4be27f906f88a70b830ef789 Mon Sep 17 00:00:00 2001 From: Fredrik Jansson Date: Mon, 23 Jan 2023 17:01:53 +0100 Subject: [PATCH] fix: Make cmd a local var in bash completion --- clap_complete/src/shells/bash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clap_complete/src/shells/bash.rs b/clap_complete/src/shells/bash.rs index e110537e..df955761 100644 --- a/clap_complete/src/shells/bash.rs +++ b/clap_complete/src/shells/bash.rs @@ -22,7 +22,7 @@ impl Generator for Bash { buf, format!( "_{name}() {{ - local i cur prev opts cmds + local i cur prev opts cmd COMPREPLY=() cur=\"${{COMP_WORDS[COMP_CWORD]}}\" prev=\"${{COMP_WORDS[COMP_CWORD-1]}}\"