RHBA-2015:2208

Type: Bug fix
Severity: None
Published: 2015-11-19
Red Hat Enterprise Linux 7

The Z shell (zsh) is a command interpreter usable as an interactive login shell and as a shell script command processor. The Z shell resembles the Korn shell (ksh), but includes many enhancements. The Z shell supports command-line editing, built-in spelling correction, programmable command completion, shell functions with autoloading, a history mechanism, and more. This update fixes the following bugs: * Prior to this update, the speed of pattern matching in zsh decreased when multiple subsequent occurrences of the "*" wildcard symbol were used in a pattern. An upstream patch has been applied on zsh source code to optimize the implementation of pattern matching in zsh with redundant "*" symbols. As a result, the speed of pattern matching in zsh is no longer affected by the count of subsequent "*" symbols. (BZ#1130418) * Previously, when zsh was not able to close the requested file descriptor, an error message was printed. With this update, the error message is suppressed if the user has no explicit control over the file descriptor being closed. (BZ#1131191) * Previously, zsh did not correctly check strings containing double square brackets ("[[...]]"). As a consequence, the zsh syntax check failed when testing scripts that contained these characters. With this update, zsh checks strings with double square brackets correctly, and scripts that contain them no longer fail the testing. (BZ#1146512) * Previously, when the signal handler attempted to execute a memory allocation function and a signal was raised in the meantime, a deadlock occurred and the zsh process became unresponsive. With this update, the calls to memory allocation functions in signal handlers are wrapped so that signals are queued until the affected functions complete. As a result, the described deadlock no longer occurs in zsh. (BZ#1163823) * Previously, the /etc/zshenv configuration file contained a comment stating that /etc/zshenv is not sourced if zsh is executed with the -f option, which is not true, because /etc/zshenv is always sourced. With this update, the comment has been replaced with a correct one and so no longer causes confusion. (BZ#1164312) * Previously, when processing overly long input data, the zsh shell terminated unexpectedly because of a stack-based buffer overflow. With this update, arrays of variable sizes are allocated on heap memory instead of stack memory, thus fixing the bug. (BZ#1165118) * Previously, the code that initializes environment variables in zsh did not correctly handle NULL values. As a consequence, zsh terminated unexpectedly when attempting to check the syntax of a shell script in ksh emulation mode. This update fixes the handling of NULL values, and the syntax check now works as expected when zsh runs in ksh emulation mode. (BZ#1222867) * Previously, zsh did not correctly parse command substitutions. As a consequence, zsh in some cases reported syntax errors for syntactically valid shell scripts. With this update, the parser has been fixed to parse shell scripts correctly. (BZ#1241023) In addition, this update adds the following enhancement: * With this update, the "wait" built-in command of zsh can now wait for and obtain the exit status of any selected background process, which no longer needs to be the latest created one. (BZ#1150554) Users of zsh are advised to upgrade to these updated packages, which fix these bugs and add this enhancement.

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T23:33:29.885Z UTC

Official vendor advisory

Red Hat Enterprise Linux 7

View source
Observed 2026-11-27T23:33:29.885Z UTC. Last updated 2026-10-07T09:20:41.630Z UTC.

Upstream Advisory

Affected Packages

  • zsh 5.0.2-14.el7

  • zsh-html 5.0.2-14.el7

Interested in being alerted when there are new versions of zsh and the other packages? Set up an alert.
RHBA-2015:2208: zsh bug fix and enhancement update | Package Alert