From 28679cf7c330d2313a1e1c472b712527e4dc00bd Mon Sep 17 00:00:00 2001 From: Markus Richter <8398165+mqus@users.noreply.github.com> Date: Tue, 6 Nov 2018 20:56:19 +0100 Subject: [PATCH] remove last expl[@] strings and replace them with the generic "$@" --- src/_nftables | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_nftables b/src/_nftables index d6e1381..32159b5 100644 --- a/src/_nftables +++ b/src/_nftables @@ -278,14 +278,14 @@ _nft_subcommands(){ 'monitor:listen to Netlink events' 'describe:show information about the type of an expression and its data type' ) - _describe -t commands 'nft subcommand' commands "${expl[@]}" + _describe -t commands 'nft subcommand' commands "$@" } _nft_mon_filter(){ local monitor_filters=( 'new:show only events of created objects' 'destroy:show only events of deleted objects' ) - _describe -t monitor_filters 'nft monitor' monitor_filters -J monitor_filters "${expl[@]}" + _describe -t monitor_filters 'nft monitor' monitor_filters -J monitor_filters "$@" _nft_mon_keywords } @@ -298,7 +298,7 @@ _nft_mon_keywords(){ 'elements:show only events of element objects' 'ruleset:show ruleset events, such as table, chain, rule, set, counters and quotas' ) - _describe -t monitor_keywords 'nft monitor' monitor_keywords -J monitor_keywords "${expl[@]}" + _describe -t monitor_keywords 'nft monitor' monitor_keywords -J monitor_keywords "$@" _nft_out_format } @@ -307,7 +307,7 @@ _nft_out_format(){ 'json:format output to JSON' 'xml:format output to XML' ) - _describe -t monitor_format "output format" monitor_format -J monitor_format "${expl[@]}" + _describe -t monitor_format "output format" monitor_format -J monitor_format "$@" } _nft_add(){