From 3b15f8a746b5b1e9038ff102aad3a42c91a76adb Mon Sep 17 00:00:00 2001 From: richlv Date: Wed, 27 Jan 2016 01:23:55 +0200 Subject: [PATCH] add foreground option --- zabbix_agentd-completion | 4 ++-- zabbix_proxy-completion | 4 ++-- zabbix_server-completion | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/zabbix_agentd-completion b/zabbix_agentd-completion index 4519d74..0669f5c 100644 --- a/zabbix_agentd-completion +++ b/zabbix_agentd-completion @@ -11,7 +11,7 @@ _zabbix_agentd() COMPREPLY=() _get_comp_words_by_ref -n = cur prev unique_opts="-h|--help|-V|--version" - nonunique_opts="-c|-p|-R|-t|--config|--print|--runtime-control|--test" + nonunique_opts="-c|-p|-R|-t|-f|--config|--print|--runtime-control|--test|--foreground" unique_opts_space=${unique_opts//|/ } nonunique_opts_space=${nonunique_opts//|/ } runtime_options="log_level_increase log_level_decrease" @@ -20,7 +20,7 @@ _zabbix_agentd() for (( i=1; i<=${#COMP_WORDS[@]-1}; ++i )) ; do opt=${COMP_WORDS[$i]} - [[ $opt =~ --*[pthvVcRr].* ]] && { + [[ $opt =~ --*[pthvVcRrf].* ]] && { option=$opt } || { continue diff --git a/zabbix_proxy-completion b/zabbix_proxy-completion index 8862eef..c2db600 100644 --- a/zabbix_proxy-completion +++ b/zabbix_proxy-completion @@ -11,7 +11,7 @@ _zabbix_proxy() COMPREPLY=() _get_comp_words_by_ref -n = cur prev unique_opts="-h|--help|-V|--version" - nonunique_opts="-c|-R|--config|--runtime-control" + nonunique_opts="-c|-R|-f|--config|--runtime-control|--foreground" unique_opts_space=${unique_opts//|/ } nonunique_opts_space=${nonunique_opts//|/ } runtime_simple_options="config_cache_reload housekeeper_execute" @@ -22,7 +22,7 @@ _zabbix_proxy() for (( i=1; i<=${#COMP_WORDS[@]-1}; ++i )) ; do opt=${COMP_WORDS[$i]} - [[ $opt =~ --*[hvVcRr].* ]] && { + [[ $opt =~ --*[hvVcRrf].* ]] && { option=$opt } || { continue diff --git a/zabbix_server-completion b/zabbix_server-completion index 00c5d8c..6b1f377 100644 --- a/zabbix_server-completion +++ b/zabbix_server-completion @@ -12,7 +12,7 @@ _zabbix_server() _get_comp_words_by_ref -n = cur prev unique_opts="-h|--help|-V|--version" - nonunique_opts="-c|-R|--config|--runtime-control" + nonunique_opts="-c|-R|-f|--config|--runtime-control|--foreground" unique_opts_space=${unique_opts//|/ } nonunique_opts_space=${nonunique_opts//|/ } runtime_simple_options="config_cache_reload housekeeper_execute" @@ -28,7 +28,7 @@ _zabbix_server() unset config_supplied continue } - [[ $opt =~ --*[hvVcRr].* ]] && { + [[ $opt =~ --*[hvVcRrf].* ]] && { option=$opt } || { continue