Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 2004 20:52:12 +0200 (EET)
From:      Toni Viemero <toni.viemero@iki.fi>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/63314: fix bash-completion hard coded paths for postfix completion
Message-ID:  <20040224185212.6E5C1207AC5@iso.egotaivas.com>
Resent-Message-ID: <200402241900.i1OJ0Wcg099247@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040224185212.6E5C1207AC5>