ports/63314: fix bash-completion hard coded paths for postfix completion
Toni Viemero
toni.viemero at iki.fi
Tue Feb 24 19:00:40 UTC 2004
>Number: 63314
>Category: ports
>Synopsis: fix bash-completion hard coded paths for postfix completion
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 24 11:00:31 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Toni Viemerö
>Release: FreeBSD 4.9-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD iso.egotaivas.com 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #0: Thu Dec 11 15:36:29 EET 2003 root at iso.egotaivas.com:/usr/src/sys/compile/ISO i386
>Description:
bash-completion has hard coded lines for Postfix completion which
assumes Postfix is installed PREFIX=/usr
Fix paths for FreeBSD PREFIX=/usr/local
>How-To-Repeat:
>Fix:
Add files/patch-ab
--- bash_completion.org Tue Feb 24 20:46:16 2004
+++ bash_completion Tue Feb 24 20:48:00 2004
@@ -1050,7 +1050,7 @@
else
len=${#cur}
idx=0
- for pval in $( /usr/sbin/postconf -m ); do
+ for pval in $( /usr/local/sbin/postconf -m ); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
COMPREPLY[$idx]="$pval:"
idx=$(($idx+1))
@@ -1089,7 +1089,7 @@
if [[ $qfile == 1 ]]; then
len=${#cur}
idx=0
- for pval in $( mailq | \
+ for pval in $( /usr/local/bin/mailq | \
sed -e '1d; $d; /^[^0-9A-Z]\|^$/d; s/[* !].*$//' ); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
COMPREPLY[$idx]=$pval
@@ -1126,7 +1126,7 @@
fi
len=${#cur}
idx=0
- for pval in $( /usr/sbin/postconf | cut -d ' ' -f 1 ); do
+ for pval in $( /usr/local/sbin/postconf | cut -d ' ' -f 1 ); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
COMPREPLY[$idx]="$pval$eqext"
idx=$(($idx+1))
@@ -1153,7 +1153,7 @@
-[dr])
len=${#cur}
idx=0
- for pval in $( echo ALL; mailq | \
+ for pval in $( echo ALL; /usr/local/bin/mailq | \
sed -e '1d; $d; /^[^0-9A-Z]\|^$/d; s/[* !].*$//' ); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
COMPREPLY[$idx]=$pval
@@ -1165,7 +1165,7 @@
-h)
len=${#cur}
idx=0
- for pval in $( echo ALL; mailq | \
+ for pval in $( echo ALL; /usr/local/bin/mailq | \
sed -e '1d; $d; /^[^0-9A-Z]\|^$/d; s/[* ].*$//; /!$/d' ); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
COMPREPLY[$idx]=$pval
@@ -1177,7 +1177,7 @@
-H)
len=${#cur}
idx=0
- for pval in $( echo ALL; mailq | \
+ for pval in $( echo ALL; /usr/local/bin/mailq | \
sed -e '1d; $d; /^[^0-9A-Z]\|^$/d; /^[0-9A-Z]*[* ]/d; s/!.*$//' ); do
if [[ "$cur" == "${pval:0:$len}" ]]; then
COMPREPLY[$idx]=$pval
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list