- explicit path to postconf(1) for Postfix completion

This commit is contained in:
ianmacd 2003-06-07 20:46:04 +00:00
parent af0237533a
commit 602fa47d78

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.574 2003/06/02 02:41:33 ianmacd Exp $
# $Id: bash_completion,v 1.575 2003/06/07 22:46:04 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -955,7 +955,7 @@ _postmap()
else
len=${#cur}
idx=0
for pval in $( postconf -m ); do
for pval in $( /usr/sbin/postconf -m ); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
COMPREPLY[$idx]="$pval:"
idx=$(($idx+1))
@ -991,7 +991,7 @@ _postconf()
fi
len=${#cur}
idx=0
for pval in $( postconf | cut -d ' ' -f 1 ); do
for pval in $( /usr/sbin/postconf | cut -d ' ' -f 1 ); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
COMPREPLY[$idx]="$pval$eqext"
idx=$(($idx+1))