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

shells/bash 5.3.20

GNU Project's Bourne Again SHell

Port info

Maintainer
ehaupt@FreeBSD.org
Packages
latest: 5.3.20
Upstream
up to date
Last update
to 5.3.20 · 5c05bb2f2a
Quarterly
2026Q4: 5.3.20
Formerly
shells/bash-devel until 2014-03-03, shells/bash3 until 2004-08-11
WWW
https://www.gnu.org/software/bash/
Links
cgit · VuXML · Report wrong data

Install

Package
# pkg install bash
installs 5.3.20 from latest; from quarterly (2026Q4) 5.3.20
Port
# cd /usr/ports/shells/bash && make install clean
# make -C /usr/ports/shells/bash config  # change options first
Size
1.9 MiB download · 9.9 MiB installed
Depends on
devel/gettext-runtime 1.0_1, print/indexinfo 0.3.1_1
License
GPLv3+
Options
4 of 8 on in the package: DOCS HELP NLS SYSBASHRC
Show the 4 options that are off
FDESCFS PORTS_READLINE STATIC SYSLOG

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 165.3.205.3.20–
FreeBSD 155.3.205.3.20–
FreeBSD 145.3.205.3.205.3.20

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 155.3.205.3.20–
FreeBSD 145.3.205.3.205.3.20

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 5.3.20.

Fixed (3)

Show 3 fixed
VuXML entries whose affected range the packaged version has left.

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

None.

Commits (330)

David E. O'Brien (obrien)
Upgrade to 3.2.
392bd21eb6
Stanislav Sedov (stas)
- Fix pkg-plist.

Approved by:	maintainer timeout (5 months)
12a3e6e80e
David E. O'Brien (obrien)
Rather than have to manually list every patch version, use some automation (courtesy of 'jot').

Obtained from:	Vim port
5e595f7722
David E. O'Brien (obrien)
Add vendor patch fixing array expansion fails with an arithmetic syntax error when the subscript appears within double quotes. For example: ${a["4"]}.
eca44c8543
Marcus Alves Grando (mnag)
- Update to 3.1.16

PR:		95188
Submitted by:	Toni Viemero <toni.viemero___iki.fi>
Approved by:	portmgr (krion)
6a342e5b78
Kris Kennaway (kris)
When bash is built with the bison 1.75 port present it breaks the ability of bash to parse certain legal shell scripts (used by e.g. GNU configure). Fix this by explicitly directing bash to use yacc.

Bump PORTREVISION since this is likely to be a common enough occurrence
that many users will benefit from the rebuild.

Submitted by:   Nicolas Rachinsky <nicolas-0@ml.turing-complete.org>
PR:             ports/94086
Approved by:    portmgr (implicit)
8e180ab31a
Marcus Alves Grando (mnag)
- Fix master sites and patch sites

Reported by:	Guillermo MORENO-SOCIAS
Approved by:	portmgr (krion)
a8efc057b3
Renato Botelho (garga)
- Update to 3.1.10

PR:		ports/91036
Submitted by:	Rainer Alves <rainer.alves@gmail.com>
Approved by:	maintainer timeout (54 days)
96a33532bb
Edwin Groothuis (edwin)
SHA256ify

Approved by: krion@
32487a10ad
Florent Thoumie (flz)
- Rename WANT_STATIC_BASH to WITH_STATIC_BASH to respect ports semantics.

PR:		ports/89772
Submitted by:	flz
Approved by:	maintainer
f9a121e9a2
Florent Thoumie (flz)
- Add WANT_STATIC_BASH knob.

PR:		ports/81795
Submitted by:	Bjarne Koenig <bkoenig@cs.tu-berlin.de>
Approved by:	maintainer timeout (5 months)
b9efc6aa44
Mark Linimon (linimon)
Per prior standing request, turn this port over from inactive committer (eik) to obrien.

Hat:	portmgr
ba6c490c01
David E. O'Brien (obrien)
CVS really does need a better way of backing out a commit composing a set of files...
0afb999ff9
David E. O'Brien (obrien)
At Kris's request, back out the MACHINE_ARCH spelling correction until after 5.4-RELEASE.
c3d8037aeb
David E. O'Brien (obrien)
Very sorry for a local change that made it into the last commit.
72e23f2cf4
David E. O'Brien (obrien)
Assist getting more ports working on AMD64 by obeying the Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.
f2fc2d60ae
Oliver Eikemeier (eik)
Fix `read -e' handling when PS1 is longer than the terminal width   <http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139306>

Obtained from:	Tim Waugh <twaugh@redhat.com>
d8f7447a12
Oliver Eikemeier (eik)
- update to patchlevel 16 (replacing FreeBSD subst.c patch) - use system readline on -CURRENT [1]

Submitted by:	sf [1]
70f1c1f0b7
Oliver Eikemeier (eik)
- update to patchlevel 15
f0c4bac25e
Oliver Eikemeier (eik) · 3.0.13
- better reflect `bash --version' in PORTVERSION - new shopt colonbreakswords - fix default PATH
875ebd31e7
Oliver Eikemeier (eik) · 3.0_5
Fix process substitution on systems without fdescfs (FreeBSD 5.x, 6.x)

While I'm here, use the official patchset instead of the custom ones
and reflect the port revision in the version number.

Submitted by:	Reinhard Speyerer <rspmn@arcor.de>
Approved by:	portmgr (krion)
47f3195355
Oliver Eikemeier (eik) · 3.0_4
- add FAQ - experimental shopt `implicitcd' - fix `Tags out of Date' in texinfo pages - fix line wrap bug in libreadline - set LATEST_LINK to `bash', so that `pkg_add -r bash' works
a55fe984d5
Oliver Eikemeier (eik) · 3.0_3
add three fixes from bug-bash@:

- pipefail option
- broken array expansion
- segmentation fault in unset typeset array variable
0ddba63255
Oliver Eikemeier (eik) · 3.0_2
Fix nested brace vs. variable expansion
764c05e57a
Oliver Eikemeier (eik) · 3.0_1
Fix segfault when accessing an unset array
fa4d9be814
Oliver Eikemeier (eik) · 3.0
Add bash3, The GNU Bourne-Again SHell version 3.00

http://cnswww.cns.cwru.edu/~chet/bash/NEWS
f55e7a8694
Volker Stolz (vs) · 2.05b.007_1
Fix location of binary in man-page

PR:		ports/42729
Submitted by:	Harold Gutch
Approved by:	maintainer timeout
688ea8e6d6
David E. O'Brien (obrien) · 2.05b.007_1
Avoid a null pointer dereference, so 'xargs <<< ${EMTPY_VARIABLE}' will not segfault and dump core.

Submitted by:	Robert Nagy <robert@openbsd.org>
edd5ce97c3
Trevor Johnson (trevor) · 2.05b.007
SIZEify (maintainer timeout)
8232e82f85
Sergey A. Osokin (osa) · 2.05b.007
Fix pkg-plist (NOPORTDOCS knob). Use DOCSDIR macro.

Approved by:	obrien (maintainer)
047429fb2a
David E. O'Brien (obrien) · 2.05b.007
Also pay attention to NOSHARED=yes as /usr/src and zsh does.

Requested by:	Richard Coleman <richardcoleman@mindspring.com>
ab8dd75a02
David E. O'Brien (obrien) · 2.05b.007
The option to enable network redirection is removed since this is the default behavior.

PR:		60222
Submitted by:	David Yeske <dyeske@yahoo.com>
bc6d44c895
David E. O'Brien (obrien) · 2.05b.007
Build bash dynamic unless either WANT_STATIC_BASH or NO_DYNAMICROOT is defined.
ed3714f6d6
David E. O'Brien (obrien) · 2.05b.007
Fetch patches from MASTER_SITE_GNU also.
e71a26d5c9
David E. O'Brien (obrien) · 2.05b.007
Properly configure on FreeBSD/amd64.
20f489073d
David E. O'Brien (obrien) · 2.05b.007
Update to patchlevel 7.
d002bc7def
David E. O'Brien (obrien) · 2.05b.004
Support /dev/(tcp|udp)/host/port redirection.

Submitted by:	David Yeske <dyeske@yahoo.com>
273ccf2e3b
Ade Lovett (ade) · 2.05b.004
Clear moonlight beckons. Requiem mors pacem pkg-comment, And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
7e52725f2a
David E. O'Brien (obrien) · 2.05b.004
Fix logic error when NOPORTDOCS is set.

Submitted by:	Peter Avalos <pavalos@theshell.com>
PR:		43459
06c98b8989
David E. O'Brien (obrien) · 2.05b.004
Mirror the patch files.
4aa5fb5d56
David E. O'Brien (obrien) · 2.05b.004
Use offical vendor patches 1-4.
a146f053ab
David E. O'Brien (obrien) · 2.05b_1
Use the offical vendor patch for the directory space vs. slash command name completion problem.

Submitted by:	Chet Ramey <chet@po.CWRU.Edu>
Bash PR:	http://mail.gnu.org/pipermail/bug-bash/2002-July/004789.html
f71e7b3c60
David E. O'Brien (obrien) · 2.05b_1
Bump revision for directory command-line completion fix.

Always forgotten by:	me
fe3f550a4e
David E. O'Brien (obrien) · 2.05b
"In certain cases, Bash appends a space instead of a slash to a directory name relative to the current directory when performing command name completion. This affects partial completion of intermediate directory names."  Fix this.

Bash PR:	http://mail.gnu.org/pipermail/bug-bash/2002-July/004789.html
Obtained from:	http://www.geocrawler.com/mail/msg.php3?msg_id=9514404&list=342
ce9d222b68
David E. O'Brien (obrien) · 2.05b
We lie about fully having ISO C90 Amd.1 restartable wide and multibyte character manipulation functions.
00c6d9d8ea
David E. O'Brien (obrien) · 2.05b
Simply typing Shift-Enter in bash-2.05b causes it to enter some kind of CPU-consuming loop. A kill -9 from another terminal is required to end it.

Submitted by:	Chet Ramey <chet@nike.ins.cwru.edu>
dfa32123f5
David E. O'Brien (obrien) · 2.05b
`make reinstall' clean.
1659aea7bb
David E. O'Brien (obrien) · 2.05b
Forgot to update pkg-plist with 5.0b upgrade.

Submitted by:	Neil Darlow <neil@darlow.co.uk>
b51fd57a8d
David E. O'Brien (obrien) · 2.05b
Update to version 2.05b.

PR:		41176
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
421df473ba