shells/bash-completion requires textproc/gsed

Jean-Baptiste Quenot jb.quenot at
Wed Feb 18 01:28:47 PST 2004

>Submitter-Id:	current-users
>Originator:	Jean-Baptiste Quenot
>Confidential:	no
>Synopsis:	shells/bash-completion requires textproc/gsed
>Severity:	serious
>Priority:	medium
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 5.1-RELEASE i386
System: FreeBSD 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root at i386
Bash Completion uses GNU extensions that FreeBSD sed does not have.  GNU sed
and BSD sed are very different, and incompatible.  Setting up a runtime
dependency on gsed when installing bash-completion ensures that all completions
are functional, and that Bash Completion behaves consistently between operating

This problem has already been [1]discussed (no action from maintainer has
happened so far), and the bash-completion [2]Changelog mentions the use of gsed
when found on non-Linux systems.

When gsed is not installed, many completions do not work, like killall, screen,
and many more that would be too long to list here.  Installing gsed and
sourcing the bash_completion script again solves the problem.
Apply the following patch:
--- /usr/ports/shells/bash-completion/Makefile	Fri Feb  6 14:12:20 2004
+++ Makefile-bash-completion	Wed Feb 18 10:19:15 2004
@@ -14,6 +14,8 @@
 COMMENT=	Programmable completion library for Bash 2.04 and up
 RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash2
+# Make all completions available as BSD sed is incompatible with GNU sed
+RUN_DEPENDS+=	gsed:${PORTSDIR}/textproc/gsed
 WRKSRC=		${WRKDIR}/bash_completion
 NO_BUILD=	yes
Thank  you for  maintaining the  bash completion  port for  FreeBSD.

More information about the freebsd-ports mailing list