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 #1289597db418ff164
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-completioninstalls 2.18.0,2 fromlatest; fromquarterly(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 version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 2.18.0,2 | 2.18.0,2 | – |
| FreeBSD 15 | 2.18.0,2 | 2.18.0,2 | – |
| FreeBSD 14 | 2.18.0,2 | 2.18.0,2 | 2.18.0,2 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 2.18.0,2 | 2.18.0,2 | – |
| FreeBSD 14 | 2.18.0,2 | 2.18.0,2 | 2.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)
Cleanup plist6a08177202
Add DOCS option where PORTDOCS is in plist.c6941c482e
Correct typo... it's tar:bzip2, not tar:bz2.ba89dd1b53
Use the USES=tar:... variants.9b68f5d5fa
The distfile is finally up on the alioth files area, so switch to it as the MASTER_SITE.6f21636837
Remove CONFLICTS against non-existant port.25017970bd
Remove bash-devel support now that it has been folded into shells/bash proper. Bump PORTREVISION on affected ports.31cc356bf4
TIL option_XYZ_OFFa1f4e6f0c5
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
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
Fix staging as non-root. Submitted by: Anton Yuzhaninov <citrin@citrin.ru> While I'm here, convert bash selection to OPTIONS.a79001505e
Staging support.0672f90140
Add NO_STAGE all over the place in preparation for the staging support (cat: shells)f6e6105ff8
Update to 2.1. Feature safe: yesb0db2d3713
Add support for WITH_BASH_DEVEL=yes to depend on shells/bash-devel. Also, use MDOCS.c8b267ee81
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: yes97796d9ef9Fix 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
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
- 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
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
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: ehaupt647f205ac5
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
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: ehauptd3a1b2b72b
Add pkg-plist, forgotten in bash-completion-1.2 commit.94e6575455
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
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
- 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
. 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
Provide flv (FFmpeg Flash video) file completion for mplayer PR: 104571 Approved by: Kirk Strauser <kirk@strauser.com> (maintainer)7d0823eddc
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
- Update to 20060301 - portlint(1) PR: 93995 Submitted by: Toni Viemero <toni.viemero@iki.fi> Approved by: maintainerbeee07e38f
SHA256ify Approved by: krion@32487a10ad
[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: maintainerbc1db54600
- Update to 20050112 PR: ports/76455 Submitted by: Toni Viemero <toni.viemero@iki.fi> Approved by: Kirk Strauser <kirk@strauser.com> (maintainer)db979c08fe
- Update to 20041017 PR: ports/73174 Submitted by: Kirk Strauser <kirk@strauser.com> (maintainer)da5a605249
- Update to 20040711 PR: ports/69769 Submitted by: Toni Viemero <toni.viemero@iki.fi> Approved by: maintainer497288280d
- 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
- Update to version 20040331 PR: ports/65606 Submitted by: Toni Viemero <toni.viemero@iki.fi> Approved by: maintainer431dc081a7
- Update to version 20040214 PR: ports/63023 Submitted by: maintainer45325003d1
Use PLIST_FILES (bento-tested, marcus-reviewed).a049dd78cc
Update to 20040101 PR: 61177 Submitted by: maintainerc6c298912b
Add 'cvs blame' support.a8010e0abe
- Update to version 20031112 PR: 59343 Submitted by: Kirk Strauser <kirk@strauser.com> (maintainer)1feae9145a
- Update to version 20031022 PR: 59018 Submitted by: maintainer54fcdf01f1
- Update to version 20030929 PR: 57373 Submitted by: Kirk Strauser <kirk@strauser.com> (maintainer)9eaa7dfa63
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