Bug 123326 - [PATCH]shells/bash: update to 3.2.39
Summary: [PATCH]shells/bash: update to 3.2.39
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: David E. O'Brien
Depends on:
Reported: 2008-05-02 10:20 UTC by bf
Modified: 2008-05-04 03:40 UTC (History)
0 users

See Also:

file.diff (1.77 KB, patch)
2008-05-02 10:20 UTC, bf
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bf 2008-05-02 10:20:00 UTC
Update to patchlevel 39.  Bugs addressed:

"The bash getcwd replacement will write past the end of allocated memory
when it allocates the buffer itself if it uses the buffer size passed as
an argument, and that size is less than the length of the pathname.

Bash incorrectly puts the second and subsequent children spawned by a
shell forked to run a command substitution in the wrong process group.

When initializing a subshell, bash did not reset a sentinel keeping track
of the number of command substitutions, leading to an infinite loop if
an error was encountered in the subshell.

Bash inappropriately evaluates command substitutions while expanding
directory names as part of command substitution.

When reading input lines into a single variable using the `read' builtin,
bash did not free the memory it read after assigning it to the named
variable, causing a memory leak noticeable when reading large amounts of

Bash-3.2 changed the behavior of the [[ command's `=~' operator when the
right-hand side was quoted:  it matched the quoted portions as strings.
This patch introduces a new shell option: compat31.  When enabled, it
restores the bash-3.1 behavior with respect to evaluating quoted arguments
to the =~ operator.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer 2008-05-02 10:20:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->obrien

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2008-05-04 03:34:56 UTC
obrien      2008-05-04 02:34:53 UTC

  FreeBSD ports repository

  Modified files:
    shells/bash          Makefile distinfo 
  Update to Bash 3.2 patchlevel 39.
  PR: 123326
  Submitted by: bf2006a@yahoo.com
  Revision  Changes    Path
  1.101     +1 -1      ports/shells/bash/Makefile
  1.38      +18 -0     ports/shells/bash/distinfo
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 David E. O'Brien freebsd_committer 2008-05-04 03:36:00 UTC
State Changed
From-To: open->closed