CVE and update status of the FreeBSD ports tree3,295 unaddressed CVEs in 670 portsAll times are CET
Port details

shells/bash-completion 2.18.0,2

Programmable completion library for Bash

Port info

Maintainer
sunpoet@FreeBSD.org
Packages
latest: 2.18.0,2
Upstream
up to date
Last update
to 2.18.0,2 · d597130290
Quarterly
2026Q4: 2.18.0,2
WWW
https://github.com/scop/bash-completion
Links
cgit · VuXML · Report wrong data

Install

Package
# pkg install bash-completion
installs 2.18.0,2 from latest; from quarterly (2026Q4) 2.18.0,2
Port
# cd /usr/ports/shells/bash-completion && make install clean
# make -C /usr/ports/shells/bash-completion config  # change options first
Size
248 KiB download · 1.0 MiB installed
Depends on
shells/bash-completion-freebsd 1.6.1, shells/bash-completion-zfs 2.4.1
License
GPLv2+
Options
3 of 3 on in the package: CMAKE_MODULES FREEBSD ZFS
pkg-message
Shown after installing
To enable the bash completion library, add the following to
your .bashrc file:

[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
	source /usr/local/share/bash-completion/bash_completion.sh

See /usr/local/share/doc/bash-completion/README.md for more information.

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 162.18.0,22.18.0,2–
FreeBSD 152.18.0,22.18.0,2–
FreeBSD 142.18.0,22.18.0,22.18.0,2

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 152.18.0,22.18.0,2–
FreeBSD 142.18.0,22.18.0,22.18.0,2

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 2.18.0,2.

Fixed (0)

No VuXML entries for this package.

Problem reports (0) · open in Bugzilla, most recently changed first

None.

Commits (97)

Adam Weinberger (adamw) · 2.1_4,1
Add a patch to fix tab on an empty line producing: 	$ bash: words: bad array subscript

PR:		196713
Submitted by:	gnudalf@yandex.com
Obtained from:	upstream bug #1289597
db418ff164
Antoine Brodin (antoine) · 2.1_3,1
Cleanup plist
6a08177202
Adam Weinberger (adamw) · 2.1_3,1
Add DOCS option where PORTDOCS is in plist.
c6941c482e
Adam Weinberger (adamw) · 2.1_3,1
Correct typo... it's tar:bzip2, not tar:bz2.
ba89dd1b53
Adam Weinberger (adamw) · 2.1_3,1
Use the USES=tar:... variants.
9b68f5d5fa
Adam Weinberger (adamw) · 2.1_3,1
The distfile is finally up on the alioth files area, so switch to it as the MASTER_SITE.
6f21636837
Adam Weinberger (adamw) · 2.1_3,1
Remove CONFLICTS against non-existant port.
25017970bd
Adam Weinberger (adamw) · 2.1_2,1
Remove bash-devel support now that it has been folded into shells/bash proper. Bump PORTREVISION on affected ports.
31cc356bf4
Adam Weinberger (adamw) · 2.1_1,1
TIL option_XYZ_OFF
a1f4e6f0c5
Adam Weinberger (adamw) · 2.1_1,1
Host the bash-completion-2.1 distfile on MASTER_SITE_LOCAL.

I really have no idea what is going on with the distfile. The 2.1 tag
has been in the b-c git tree for 9 months now, but their website hasn't
been updated to reflect this. Their alioth area now shows no files
whatsoever, which makes this version (and any other) unfetchable. Some
distros are also using 2.1, some aren't. So, let's cut our losses and
just host it ourselves. Hopefully this can help some other distros too.

While I'm here, clean up the Makefile a bit to feed my OCD.
1c84663845
John Marino (marino) · 2.1_1,1
shells/bash-completion: Fix installation

The bash-completion.pc and bash_completion.sh files were not getting
installed in the correct location per pkg-plist, mainly because the
Makefile.in was modified *after* the configuration target was complete,
that is to say after Makefile has been generated.

By improving the Makefile.am patch, the post-configure target can be
simplified.

Approved by:	maintainer (adamw)
6a1286cd58
Adam Weinberger (adamw) · 2.1,1
Fix staging as non-root.

Submitted by:	Anton Yuzhaninov <citrin@citrin.ru>

While I'm here, convert bash selection to OPTIONS.
a79001505e
Adam Weinberger (adamw) · 2.1,1
Staging support.
0672f90140
Baptiste Daroussin (bapt) · 2.1,1
Add NO_STAGE all over the place in preparation for the staging support (cat: shells)
f6e6105ff8
Adam Weinberger (adamw) · 2.1,1
Update to 2.1.

Feature safe:	yes
b0db2d3713
Adam Weinberger (adamw) · 2.0,1
Add support for WITH_BASH_DEVEL=yes to depend on shells/bash-devel. Also, use MDOCS.
c8b267ee81
Adam Weinberger (adamw) · 2.0,1
Update to 2.0.

Please note that the mechanism for activating the completions
library has changed. You must source
${PREFIX}/share/bash-completion/bash_completion.sh from your .bashrc.

Feature safe:	yes
97796d9ef9
Adam Weinberger (adamw) · 1.3_4,1
Fix a variable substitution.

Note that this was the intended fix in PORTREVISION 3, the previous
commit, and was the change intended by ports/161999.

PR:		ports/161999
Submitted by:	Eugene Paskevich <eugene@raptor.kiev.ua>
7844e54677
Adam Weinberger (adamw) · 1.3_3,1
Fix a // in path which apparently breaks portinstall's ability to parse INDEX.

PR:		ports/161999
Submitted by:	Eugene Paskevich <eugene@raptor.kiev.ua>
7093b565e9
Sunpoet Po-Chuan Hsieh (sunpoet) · 1.3_2,1
- Use @dirrmtry for PREFIX/etc/bash_completion.d   Other ports (e.g. devel/glib20) install files to this directory. - Costmetic change: put build-related knobs together - Sort PLIST - Space/tab twiddle

PR:		ports/160202
Submitted by:	sunpoet (myself)
Approved by:	maintainer (timeout, 24 days)
e7290cb82c
Adam Weinberger (adamw) · 1.3,1
Update to 1.3.

According to the CHANGES file, the avahi-browse error is patched in this
version, though in a manner a bit different from our patch. Please test
on amd64 and let me know if the problem has regressed.
9e2ba8ac31
Adam Weinberger (adamw) · 1.2_2,1
This patch hopefully fixes bash freezing on amd64 when using host-based completions. Tons of thanks to Raphael Kubo da Costa for identifying the fix and providing us with a patch, and to ehaupt for testing!

PR:		ports/150322
Submitted by:	Raphael Kubo da Costa <kubito@gmail.com>
Reviewed by:	ehaupt
647f205ac5
Adam Weinberger (adamw) · 1.2_1,1
Now that shells/bash-completion-classic is in the tree, register a conflict with it. Also, remove the rsync-disable hack on amd64, and replace it with a simple BROKEN message.

Note that shells/bash-completion-classic is currently an unedited
repocopy, but I know ehaupt is working to get it up and running.
0cf84630c9
Adam Weinberger (adamw) · 1.2_1,1
The rsync completion plugin causes the shell to freeze on amd64. Until that gets resolved, I'm disconnecting the rsync plugin from the build on amd64.

PR:		ports/150322
Submitted by:	ehaupt
d3a1b2b72b
Adam Weinberger (adamw) · 1.2,1
Add pkg-plist, forgotten in bash-completion-1.2 commit.
94e6575455
Adam Weinberger (adamw) · 1.2,1
Replace bash-completion with a new package.

The previous bash-completion package hadn't been updated since 2006. A
new group has picked up the package and continued development. The old
completions should remain, so I'm not going to update UPDATING.

I'm taking maintainership of this as well. Many thanks to Kirk, the
previous maintainer!
293b2c979e
Edwin Groothuis (edwin) · 20060301_3
Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
090059a210
Martin Wilke (miwi) · 20060301_2
- Remove unneeded dependency from gtk12/gtk20 [1] - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
3e4ed01146
Boris Samorodov (bsam) · 20060301_2
. drop OPTIONS for BASH2; . drop variable RUN_DEPENDS for shells/bash2; . do not bump PORTREVISION since this dependency is not default.

PR:		108626
Submitted by:	bsam (me)
Approved by:	kirk at strauser.com (maintainer timeout -- 2 weeks)
2314d82820
Emanuel Haupt (ehaupt) · 20060301_2
Provide flv (FFmpeg Flash video) file completion for mplayer

PR:		104571
Approved by:	Kirk Strauser <kirk@strauser.com> (maintainer)
7d0823eddc
Shaun Amott (shaun) · 20060301_1
Fix auto-completion for portinstall and /usr/ports/INDEX-*.

PR:		ports/103550
Submitted by:	Jeppe Larsen <jwl@io.dk>
Approved by:	Kirk Strauser <kirk@strauser.com> (maintainer)
3001068268
Marcus Alves Grando (mnag) · 20060301
- Update to 20060301 - portlint(1)

PR:		93995
Submitted by:	Toni Viemero <toni.viemero@iki.fi>
Approved by:	maintainer
beee07e38f
Edwin Groothuis (edwin) · 20050721
SHA256ify

Approved by: krion@
32487a10ad
Jean-Yves Lefort (jylefort) · 20050721
[1]:   - Update to 20050721   - OPTIONSify

Moreover:
  - Improve the FreeBSD integration by fixing paths in the script
  - Use SUB_FILES=pkg-message

[1]:
PR:		ports/84305
Submitted by:	maintainer
bc1db54600
Pav Lucistnik (pav) · 20050112
- Update to 20050112

PR:		ports/76455
Submitted by:	Toni Viemero <toni.viemero@iki.fi>
Approved by:	Kirk Strauser <kirk@strauser.com> (maintainer)
db979c08fe
Pav Lucistnik (pav) · 20041017
- Update to 20041017

PR:		ports/73174
Submitted by:	Kirk Strauser <kirk@strauser.com> (maintainer)
da5a605249
Pav Lucistnik (pav) · 20040711
- Update to 20040711

PR:		ports/69769
Submitted by:	Toni Viemero <toni.viemero@iki.fi>
Approved by:	maintainer
497288280d
Pav Lucistnik (pav) · 20040331_1
- Postfix fix: don't expect postconf be in /usr/sbin, rely on it being in PATH

PR:		ports/63314
Submitted by:	Toni Viemero <toni.viemero@iki.fi>
Approved by:	maintainer timeout (1 month)
40ba6356cc
Kirill Ponomarev (krion) · 20040331
- Update to version 20040331

PR:		ports/65606
Submitted by:	Toni Viemero <toni.viemero@iki.fi>
Approved by:	maintainer
431dc081a7
Kirill Ponomarev (krion) · 20040214
- Update to version 20040214

PR:		ports/63023
Submitted by:	maintainer
45325003d1
Trevor Johnson (trevor) · 20040101
Use PLIST_FILES (bento-tested, marcus-reviewed).
a049dd78cc
Michael Haro (mharo) · 20040101
Update to 20040101

PR:		61177
Submitted by:	maintainer
c6c298912b
David E. O'Brien (obrien) · 20031112
Add 'cvs blame' support.
a8010e0abe
Kirill Ponomarev (krion) · 20031112
- Update to version 20031112

PR:		59343
Submitted by:	Kirk Strauser <kirk@strauser.com> (maintainer)
1feae9145a
Kirill Ponomarev (krion) · 20031022
- Update to version 20031022

PR:		59018
Submitted by:	maintainer
54fcdf01f1
Kirill Ponomarev (krion) · 20030929
- Update to version 20030929

PR:		57373
Submitted by:	Kirk Strauser <kirk@strauser.com> (maintainer)
9eaa7dfa63
Edwin Groothuis (edwin) · 20030527
New port: shells/bash-completion

The shells/bash-completion port installs Ian Macdonald's
	programmable completion library for Bash 2.04 and above.
	This gives users context- sensitive tab-completion for such
	things as program arguments, SSH hostnames, NFS mounts, and
	so on.

PR:		ports/52790
Submitted by:	Kirk Strauser <kirk@strauser.com>
8707ef668e