./shells/bash, The GNU Bourne Again Shell

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ]


Branch: CURRENT, Version: 5.3.15, Package name: bash-5.3.15, Maintainer: pkgsrc-users

Bash is an sh-compatible shell that incorporates useful features from
the Korn shell (ksh) and C shell (csh). It is intended to conform to
the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.

It offers functional improvements over sh for both programming and
interactive use; these include command line editing, unlimited size
command history, job control, shell functions and aliases, indexed
arrays of unlimited size, and integer arithmetic in any base from two
to sixty-four. In addition, most sh scripts can be run by Bash without
modification.


Required to build:
[pkgtools/cwrappers]

Package options: nls

Master sites: (Expand)


Version history: (Expand)


CVS history: (Expand)


   2026-06-10 18:58:38 by Robert Elz | Files touched by this commit (2) | Package updated
Log message:
Update shells/bash to 5.3.15

Patch 13: Avoid (potential) UB comparing result from realloc with its arg
Patch 14: Improve the solution from patch 11
Patch 15: Avoid references to the byte before the input buffer used by read

And for completeness, for the patches from the previous update:

Patch 10: Fix problem with some EXIT traps calling wait
Patch 11: Fix possible ref to freed memory in mapfile
Patch 12: Fix issue with subshells, EXIT traps, and fatal signals
   2026-06-09 09:01:15 by Thomas Klausner | Files touched by this commit (2)
Log message:
bash: add latest three upstream patches

Bump version.
   2025-10-10 22:48:02 by Jonathan Schleifer | Files touched by this commit (4)
Log message:
Make shells/bash build and work on QNX
   2025-10-05 13:18:27 by Jonathan Schleifer | Files touched by this commit (9)
Log message:
shells/bash: More printf and QNX fixes

Still not there yet.
   2025-10-05 05:16:21 by Jonathan Schleifer | Files touched by this commit (5)
Log message:
shells/bash: Fix building when printf is defined to libintl_printf
   2025-07-31 23:48:09 by David H. Gutteridge | Files touched by this commit (2)
Log message:
bash: handle regenerated 5.3 archive

As discussed here:
https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00169.html
   2025-07-25 22:15:47 by Robert Elz | Files touched by this commit (2)
Log message:
Update bash to 5.3.3

Three bug-fix patches added:

5.3.1:	Fix "wait -n job/pid ..." to not ignore the list of
	jobs (or pids) given to it and instead simply wait
	for any random exited process.

5.3.2:	Avoid use of shm_open() because of too many impl
	differences

5.3.3:	Fix an internal quoting issue with expansions in
	the arithmetic command ("(( ))") and other arithmetic
	contexts (mostly affecting array subscript evaluation).
   2025-07-21 19:16:09 by Kimmo Suominen | Files touched by this commit (1)
Log message:
bash: Enable SSH_SOURCE_BASHRC

Align pkgsrc bash behaviour with various distributions (RHEL-based Linux
distros, Debian-based Linux distros, NixOS/nixpkgs) to improve user
experience and mitigate any possible observed element of surprise.

Some rationale:

- Many users expect that when they execute a command remotely (e.g., ssh
  host "my_custom_script.sh" or ssh host "alias_name"), that \ 
command
  should run in an environment that is as similar as possible to their
  interactive login environment.

- This behavior ensures compatibility with scripts, tools, and user
  habits that have come to rely on ~/.bashrc being sourced for remote
  SSH execution.

The following is an example for dividing ~/.bashrc into commands for all
shells and those only for interactive shells

  alias where='type -a'

  # If not running interactively, don't do anything else
  case "${-}" in
  *i*) ;;
    *) return;;
  esac

  shopt -s checkwinsize
  shopt -s globstar
  shopt -s histappend

  HISTCONTROL=ignoreboth
  HISTFILESIZE=2000
  HISTSIZE=1000
  HISTTIMEFORMAT='%F  %H:%M  '

Increment PKGREVISION for behaviour change.