We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb251a commit b858208Copy full SHA for b858208
zabbix_agentd-completion
@@ -78,7 +78,7 @@ _zabbix_agentd()
78
;;
79
-@(t|-test))
80
# get the available item keys (without parameters) from the currently used binary
81
- COMPREPLY=( $(compgen -W "$($1 -p | awk '/\[/ {sub(/\[.*/,"[",$1);print $1}')" -- ${cur}) )
+ COMPREPLY=( $(compgen -W "$($1 -p | awk '/\[/{ sub(/\[.*/,"["); if ($1 ~ /^[[:alnum:]._-]+\[?$/) print $1}')" -- ${cur}) )
82
if [[ $COMPREPLY =~ "[" ]]; then
83
compopt -o nospace
84
fi
0 commit comments