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

shells/zsh 5.9.2

The Z shell

Port info

Maintainer
bapt@FreeBSD.org
Packages
latest: 5.9.2
Upstream
up to date
Last update
to 5.9.2 · 587b444789
Quarterly
2026Q4: 5.9.2
Formerly
shells/zsh+euc_hack until 2006-09-01
WWW
https://www.zsh.org/
Links
cgit · VuXML · Report wrong data

Install

Package
# pkg install zsh
installs 5.9.2 from latest; from quarterly (2026Q4) 5.9.2
Port
# cd /usr/ports/shells/zsh && make install clean
# make -C /usr/ports/shells/zsh config  # change options first
Size
5.0 MiB download · 20 MiB installed
Depends on
nothing
License
ZSH
Options
2 of 7 on in the package: DOCS EXAMPLES
Show the 5 options that are off
DEBUG ETCDIR GDBM PCRE STATIC
pkg-message
Shown after installing
==========================================================

By default, zsh looks for system-wide defaults in
/usr/local/etc.

If you previously set up /etc/zprofile, /etc/zshenv, etc.,
either move them to /usr/local/etc or rebuild zsh with the
ETCDIR option enabled.

==========================================================

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 165.9.25.9.2–
FreeBSD 155.9.25.9.2–
FreeBSD 145.9.25.9.25.9.2

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 155.9.25.9.2–
FreeBSD 145.9.25.9.25.9.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 5.9.2.

Fixed (1)

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

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

PRSummaryStatusChanged
287149maintainer-feedback? shells/zsh: does not clean temporary files anymoreNew2025-05-29
278380maintainer-feedback? shells/zsh: Consider making PCRE=on the defaultNew2024-10-10
278817maintainer-feedback? shells/zsh: HTML documentation is mostly missingNew2024-05-06
269292maintainer-feedback? shells/zsh fails to reset tty state on TMOUTNew2023-02-02

Commits (277)

Baptiste Daroussin (bapt) · 5.0.0
- update to 5.0.0 no much changes for us (we where following the 4.3.x dev branch for a while) except we are back on an official stable branch

Note that this version offers completion for dtrace, beadm (not tested with
FreeBSD versions) and improved completion for zfs.
818bba15e7
Baptiste Daroussin (bapt) · 4.3.17_3
Double quotes not needed anymore for options description
6e7c9c0ea4
Baptiste Daroussin (bapt) · 4.3.17_3
Show up debug flags Add shared DEBUG description
071d342cff
Baptiste Daroussin (bapt) · 4.3.17_3
Fix descriptions with "()"

Reported by:	freshports sanity check
76f319b08f
Baptiste Daroussin (bapt) · 4.3.17_3
Convert to new option framework
7e64a460f5
Baptiste Daroussin (bapt) · 4.3.17_3
do not link against librt for clock_gettime(2)

PR:		ports/167857
Submitted by:	Jan Beich <jbeich@tormail.org>
99aa298198
Baptiste Daroussin (bapt) · 4.3.17_2
Fix sysctl completion on freebsd 10+
6785de0809
Baptiste Daroussin (bapt) · 4.3.17_1
- remove useless USE_LDCONFIG - bump portrevision

Feature safe:	yes
4fcc6073c3
Baptiste Daroussin (bapt) · 4.3.17
- update to 4.3.17
aec309fbc8
Martin Matuska (mm) · 4.3.15_2
Bump pcre library dependency due to 8.30 update
dbbf004162
Baptiste Daroussin (bapt) · 4.3.15_1
add a patch from upstream to fix SIGWINCH detection

Obtained from:	zsh (cvs)
cd62e28a33
Baptiste Daroussin (bapt) · 4.3.15
Add the forgotten checksum for zsh-doc

Submitted by:	zi
5292892317
Baptiste Daroussin (bapt) · 4.3.15
- update to 4.3.15
a599ae1e33
Baptiste Daroussin (bapt) · 4.3.14
Fix distfile fetching with NOPORTDOCS=yes

Feature safe:	yes
5943fdf48a
Baptiste Daroussin (bapt) · 4.3.14
- update to 4.3.14 - remove unnecessary USE_AUTOTOOLS - fixes libiconv detection

Feature safe:	yes
67bfb60ab3
Baptiste Daroussin (bapt) · 4.3.12_2
- Fix build for badly upgraded systems which have both utmp.h and utmpx.h

PR:		ports/156263
Submitted by:	Matthew Cashdollar <matthew@cashdollar.org>
Feature safe:	yes
f5e4192337
Baptiste Daroussin (bapt) · 4.3.12_2
Add the right patch

Reported by:	Jan Beich <jbeich@tormail.net> (by private mail)
de07c68a57
Baptiste Daroussin (bapt) · 4.3.12_2
and with the patch it is even better
63b10b0674
Baptiste Daroussin (bapt) · 4.3.12_2
- split the zsh_mem option into zsh_mem and zsh_secure_free activate secure_free my default disable mem by default[1] - correct memory report for time builtin [2] - bump portrevision

PR:		ports/143981 [1], ports/152820 [2]
Submitted by:	Richard Kolkovich <sarumont@sigil.org> [1], Anonymous <swell.k@gmail.com> and Tsu <inyaoo@gmail.com> [2]
Hurried by:	miwi :)
9bf9c7fcf0
Dmitry Marakasov (amdmi3) · 4.3.12_1
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS) - Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
6f6fbe4bdf
Gabor Kovesdan (gabor) · 4.3.12_1
- Track dependencies after databases/gdbm update
2fc6a06a9b
Baptiste Daroussin (bapt) · 4.3.12
- update to 4.3.12

Changes since 4.3.11
--------------------

The zsh/parameter module has a new readonly associative array
$usergroups whose keys are the names of system groups of which the
current user is a member and whose values are the corresponding
group identifiers.

The region_highlight array, which controls highlighting of the
command line from zle widgets, is now updated dynamically as
the command line is edited.

In POSIX emulation ("emulate sh") the shell is more accurate about
when it should or should not exit on errors.

The ${NAME:OFFSET:LENGTH} syntax now supports negative LENGTH, which
counts back from the end of the string.

The (g:opts:) flag in parameter expansion processes escape sequences like
the echo and print builtins.  opts can be any combination of o, e and c.
With e, acts like print rather than echo except for octal escapes which
are controlled separately by the o option.  With c, interpret control
sequences like "^X" as bindkey does.  Regardless of the opts, \c is not
interpreted.
7769f7cfd2
Baptiste Daroussin (bapt) · 4.3.11
Add a new macro to deal with conflict between ncurses from base and ncurses from ports. If a ports is linked against ncurses from base or from the ports, it should then add: USE_NCURSES=yes

it is also possible to specify the hard dependency on the ports ncurses or one the base one adding the following macros:
WITH_NCURSES_PORT=yes or WITH_NCURSES_BASE=yes

PR:		ports/155269
Submitted by:	me
Reviwed by:	pav@
Approved by:	portmgr (pav@)
Exp-run by:	portmgr (pav@)
8d27ddb9bd
Baptiste Daroussin (bapt) · 4.3.11
- Take maintainership, des@ is no longer having enough time for zsh, he has done a really great job with zsh, thanks a lot. [1] - Upgrade to 4.3.11 - add linsysfs to the file system list for completion [2] - fix mount completion when adding available labels to the list of devices [3]

PR:		ports/141472 [2], ports/145657 [3]
Submitted by:	scf [2], Frédéric Perrin <frederic.perrin _at_ resel.fr> [3]
Approved by:	des@ [1]
b05bfa64b5
Ade Lovett (ade) · 4.3.10_4
Sync to new bsd.autotools.mk
4a8684e352
Ade Lovett (ade) · 4.3.10_4
Punt autoconf267->autoconf268
6abd00a86b
Ade Lovett (ade) · 4.3.10_4
Autotools update.   Read ports/UPDATING 20100915 for details.

Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
8262a7b51d
Dag-Erling Smørgrav (des) · 4.3.10_3
Add rzsh to /etc/shells (this was handled correctly by pkg-plist when installing from packages, just not when installing from ports)

Noticed by:	ru@
Feature safe:	yes
93617a1a1c
Dag-Erling Smørgrav (des) · 4.3.10_2
Unset mark_dirs just in case the user has it in their zshenv. Don't USE_LDCONFIG if WITH_ZSH_STATIC.
c68f262b13
Jimmy Olgeni (olgeni) · 4.3.10_2
* Fetch documentation from the zsh-doc-dev sourceforge project.

* Make portlint happy by using ${ECHO}, and TABs in assignments.

PORTREVISION bump not required.

PR:		ports/141728
Submitted by:	olgeni
Approved by:	des (by mail)
addf612423
Dmitry Marakasov (amdmi3) · 4.3.10_2
- Switch SourceForge ports to the new File Release System: categories starting with P,R,S
3eb168f46b
Sergey A. Osokin (osa) · 4.3.10_2
Update pkg-plist after add completion patches. Bump PORTREVISION.
063e64d444
Dag-Erling Smørgrav (des) · 4.3.10_1
Add some upstream completion patches + new completion files for procstat, sockstat and fstat.

Submitted by:	Baptiste Daroussin <baptiste.daroussin@gmail.com>
186692d099
Dag-Erling Smørgrav (des) · 4.3.10
MAKE_JOBS_UNSAFE

PR:		ports/135350
Submitted by:	pgollucci
33ae10ad55
Dag-Erling Smørgrav (des) · 4.3.10
Update to 4.3.10.

PR:		ports/135188
80b3a34827
Hajimu UMEMOTO (ume) · 4.3.9_6
Add an option to enable GDBM support.

PR:		ports/134585
Submitted by:	ume
Approved by:	des (maintainer)
39195aee5c
Dag-Erling Smørgrav (des) · 4.3.9_5
When I upgraded to 4.3.9, which included Baptiste's completion definitions for zfs(8) and zpool(8) which we had previously had as local patches, I blindly assumed that the upstream versions were correct.  They weren't.
62d067117e
Pav Lucistnik (pav) · 4.3.9_4
- Remove conditional checks for FreeBSD 5.x and older
b2a96c6df1
Dag-Erling Smørgrav (des) · 4.3.9_4
Precompile functions and completion definitions at installation time.

Submitted by:	Baptiste Daroussin <baptiste.daroussin@gmail.com>
175c869d3f
Dag-Erling Smørgrav (des) · 4.3.9_3
Completion: improve portaudit, add pfctl

Submitted by:	Baptiste Daroussin <baptiste.daroussin@gmail.com>
c10595a43b
Dag-Erling Smørgrav (des) · 4.3.9_2
Upstream patch to support unusual --help syntax used by fetchmail.

Submitted by:	Baptiste Daroussin <baptiste.daroussin@gmail.com>
b86648347c
Dag-Erling Smørgrav (des) · 4.3.9_1
Kill the ZSH_ETCDIR, ZSH_FNDIR and ZSH_SITEFNDIR options.  They're nice in theory, but in practice, things will break if you set them to non-default values.  This allows us to unobfuscate the plist and fix a broken @dirrmtry.

Convert the NO_SHARED option to a proper port option (ZSH_STATIC).
274d335c52
Dag-Erling Smørgrav (des) · 4.3.9
Upgrade to 4.3.9.  Most of our local patches have been committed upstream.
0ce6819834
Dag-Erling Smørgrav (des) · 4.3.6_8
Various command completion improvements for mount(8).

PR:		ports/128450
Submitted by:	scf@
be6e6e662c
Dag-Erling Smørgrav (des) · 4.3.6_7
Move a comment that broke completion for 'zfs clone'.
dde2d54d97
Rong-En Fan (rafan) · 4.3.6_6
Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script. Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
741aa71483
Ade Lovett (ade) · 4.3.6_6
Conversion from (now defunct) autoconf-2.61 to autoconf-2.62

Tested by:	exp build run (erwin)
771ea13f41
Dag-Erling Smørgrav (des) · 4.3.6_6
Regenerate some patches that were being incorrectly applied.

Noticed by:	garga
0fb8ee3593
Dag-Erling Smørgrav (des) · 4.3.6_5
Previous commit did not update the plist.
e01496293c
Dag-Erling Smørgrav (des) · 4.3.6_4
Break out BSD completion patches into separate files.

Update csup, portsnap and portlint completion.  Add completion for powerd,
freebsd-update, fetch and portaudit (from submitter) as well as zfs and
zpool (from zsh repo).

Bump PORTREVISION.

PR:		ports/126457
Submitted by:	baptiste.daroussin@gmail.com
8c293350dc