summaryrefslogtreecommitdiff
path: root/completions/postconf
diff options
context:
space:
mode:
Diffstat (limited to 'completions/postconf')
-rw-r--r--completions/postconf9
1 files changed, 4 insertions, 5 deletions
diff --git a/completions/postconf b/completions/postconf
index c1f17d9d..45b376be 100644
--- a/completions/postconf
+++ b/completions/postconf
@@ -23,15 +23,14 @@ _postconf()
esac
if [[ $cur == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") )
return
fi
- local len=${#cur} idx=0 pval
- for pval in $( /usr/sbin/postconf 2>/dev/null | cut -d ' ' -f 1 ); do
+ local len=${#cur} pval
+ for pval in $(/usr/sbin/postconf 2>/dev/null | cut -d ' ' -f 1); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
- COMPREPLY[$idx]="$pval$eqext"
- idx=$(($idx+1))
+ COMPREPLY+=( "$pval$eqext" )
fi
done
} &&